Changeset 907 for cpp/frams/neuro/impl/neuroimpl-fuzzy.cpp
- Timestamp:
- 02/04/20 19:18:52 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/neuro/impl/neuroimpl-fuzzy.cpp
r791 r907 105 105 nrIn = rulesDef[2 * i]; // nr of inputs in rule #i 106 106 minimumCut = 2; // the highest value of membership function is 1.0, so this value will definitely change 107 for (j = 0; (j < nrIn) && (minimumCut >0); j++) //minimumCut can not be <0, so if =0 then stop calculations107 for (j = 0; (j < nrIn) && (minimumCut > 0); j++) //minimumCut can not be <0, so if =0 then stop calculations 108 108 { 109 109 nrFuzzySet = rules[i][j * 2 + 1]; // j*2 moves pointer through each output, +1 moves to nr of fuzzy set … … 111 111 minimumCut = min(minimumCut, TrapeziumFuzz(nrFuzzySet, getWeightedInputState(inputNr))); // value of membership function for this input and given fuzzy set 112 112 } 113 if ((minimumCut >1) || (minimumCut < 0))113 if ((minimumCut > 1) || (minimumCut < 0)) 114 114 return 1; 115 115 defuzzParam[i] = minimumCut;
Note: See TracChangeset
for help on using the changeset viewer.