Changeset 348 for cpp/frams/neuro/impl
- Timestamp:
- 04/09/15 23:51:28 (10 years ago)
- Location:
- cpp/frams/neuro/impl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/neuro/impl/neuroimpl-fuzzy-f0.cpp
r286 r348 23 23 break; 24 24 else 25 numbers[have++]=atof(t );25 numbers[have++]=atof(t.c_str()); 26 26 27 27 //check if number of read numbers (separated with semicolon) is equal to declared … … 122 122 t += str.charAt(pos++); 123 123 pos++; 124 rules[j][k]=atol(t ); //convert cut out string into number124 rules[j][k]=atol(t.c_str()); //convert cut out string into number 125 125 //fuzzy sets - odd index table - are counted from 0, 126 126 //so if 5 fuzzy sets declared, values acceptable are 0,1,2,3,4 -
cpp/frams/neuro/impl/neuroimpl-fuzzy.cpp
r286 r348 35 35 rulesDef = new int[2*rulesNr]; //for each rule remembers number of inputs and outputs 36 36 //check correctness of string and fill in the rulesDef 37 if (FuzzyF0String::countInputsOutputs(fuzzyRulesString , rulesDef, rulesNr) == 0)37 if (FuzzyF0String::countInputsOutputs(fuzzyRulesString.c_str(), rulesDef, rulesNr) == 0) 38 38 { 39 39 defuzzParam = new double[rulesNr]; // parameters used in defuzyfication process
Note: See TracChangeset
for help on using the changeset viewer.