Changeset 348 for cpp/frams/neuro/impl


Ignore:
Timestamp:
04/09/15 23:51:28 (9 years ago)
Author:
Maciej Komosinski
Message:
  • explicit c_str() in SString instead of (const char*) cast
  • genetic converters and GenMan? are now thread-local which enables multi-threaded simulator separation
Location:
cpp/frams/neuro/impl
Files:
2 edited

Legend:

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

    r286 r348  
    2323      break;
    2424    else
    25       numbers[have++]=atof(t);
     25      numbers[have++]=atof(t.c_str());
    2626
    2727  //check if number of read numbers (separated with semicolon) is equal to declared
     
    122122        t += str.charAt(pos++);
    123123      pos++;
    124       rules[j][k]=atol(t); //convert cut out string into number
     124      rules[j][k]=atol(t.c_str()); //convert cut out string into number
    125125      //fuzzy sets - odd index table - are counted from 0,
    126126      //so if 5 fuzzy sets declared, values acceptable are 0,1,2,3,4
  • cpp/frams/neuro/impl/neuroimpl-fuzzy.cpp

    r286 r348  
    3535  rulesDef = new int[2*rulesNr];    //for each rule remembers number of inputs and outputs
    3636  //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)
    3838  {
    3939    defuzzParam = new double[rulesNr]; // parameters used in defuzyfication process
Note: See TracChangeset for help on using the changeset viewer.