Ignore:
Timestamp:
02/04/20 19:18:52 (4 years ago)
Author:
Maciej Komosinski
Message:

Code formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/neuro/impl/neuroimpl-fuzzy.cpp

    r791 r907  
    105105                nrIn = rulesDef[2 * i]; // nr of inputs in rule #i
    106106                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 calculations
     107                for (j = 0; (j < nrIn) && (minimumCut > 0); j++) //minimumCut can not be <0, so if =0 then stop calculations
    108108                {
    109109                        nrFuzzySet = rules[i][j * 2 + 1]; // j*2 moves pointer through each output, +1 moves to nr of fuzzy set
     
    111111                        minimumCut = min(minimumCut, TrapeziumFuzz(nrFuzzySet, getWeightedInputState(inputNr))); // value of membership function for this input and given fuzzy set
    112112                }
    113                 if ((minimumCut>1) || (minimumCut < 0))
     113                if ((minimumCut > 1) || (minimumCut < 0))
    114114                        return 1;
    115115                defuzzParam[i] = minimumCut;
Note: See TracChangeset for help on using the changeset viewer.