Changeset 348 for cpp/frams/neuro
- Timestamp:
- 04/09/15 23:51:28 (10 years ago)
- Location:
- cpp/frams/neuro
- Files:
-
- 5 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 -
cpp/frams/neuro/neurofactory.cpp
r286 r348 99 99 if (removed.len()) 100 100 FMprintf("NeuroFactory","removeUninmplemented",FMLV_INFO, 101 "Removed Neuro classes: %s", (const char*)removed);101 "Removed Neuro classes: %s",removed.c_str()); 102 102 } 103 103 -
cpp/frams/neuro/neuroimpl.cpp
r288 r348 73 73 if (!ni) { errorcount++; 74 74 FMprintf("NeuroNetImpl","create",FMLV_WARN,"neuron #%d (%s) implementation not available", 75 i, (const char*)n->getClassName());75 i,n->getClassName().c_str()); 76 76 continue; } // implementation not available?! 77 77 ni->owner=this; … … 88 88 { ni->status=NeuroImpl::InitError; errorcount++; 89 89 FMprintf("NeuroNetImpl","create",FMLV_WARN,"neuron #%d (%s) initialization failed", 90 i, (const char*)n->getClassName());90 i,n->getClassName().c_str()); 91 91 continue; } 92 92 ni->status=NeuroImpl::InitOk; -
cpp/frams/neuro/neurolibparam.cpp
r286 r348 51 51 t+=n; 52 52 } 53 return t ;53 return t.c_str(); 54 54 } 55 55 … … 59 59 t=Neuro::getClass(i)->getLongName(); 60 60 t+=" ("; t+=Neuro::getClassName(i); t+=")"; 61 return t ;61 return t.c_str(); 62 62 } 63 63 … … 66 66 static SString t; 67 67 t=Neuro::getClass(i)->getSummary(); 68 return t ;68 return t.c_str(); 69 69 } 70 70
Note: See TracChangeset
for help on using the changeset viewer.