Definition at line 70 of file WeightedFeatureList.h. References Impala::Util::StringParser::GetDouble(), Impala::Util::StringParser::GetString(), mFeatures, mWeights, Impala::StringStartsWith(), and Impala::Util::StringParser::TheEnd(). Referenced by Impala::Core::Feature::Read(), and WeightedFeatureList(). 00071 { 00072 if (StringStartsWith(input, "inputFeatures")) 00073 { 00074 Util::StringParser p(input); 00075 String dummy = p.GetString(' ', true); 00076 input = p.GetString('"', true); 00077 } 00078 Util::StringParser p(input); 00079 while (!p.TheEnd()) 00080 { 00081 double weight = p.GetDouble(' ', true); 00082 String feature = p.GetString(' ', false); 00083 if (feature.empty()) 00084 break; 00085 mWeights.push_back(weight); 00086 mFeatures.push_back(feature); 00087 } 00088 }
Here is the call graph for this function:
|