#include <map>
#include "TMVA/Types.h"
TMVA::Types* TMVA::Types::fgTypesPtr = 0;
TMVA::Types::Types()
: fLogger( "Types" )
{
fStr2type["Variable"] = Types::kVariable;
fStr2type["Cuts"] = Types::kCuts;
fStr2type["Likelihood"] = Types::kLikelihood;
fStr2type["PDERS"] = Types::kPDERS;
fStr2type["KNN"] = Types::kKNN;
fStr2type["HMatrix"] = Types::kHMatrix;
fStr2type["Fisher"] = Types::kFisher;
fStr2type["MLP"] = Types::kMLP;
fStr2type["CFMlpANN"] = Types::kCFMlpANN;
fStr2type["TMlpANN"] = Types::kTMlpANN;
fStr2type["BDT"] = Types::kBDT;
fStr2type["RuleFit"] = Types::kRuleFit;
fStr2type["SVM"] = Types::kSVM;
fStr2type["FDA"] = Types::kFDA;
fStr2type["BayesClassifier"] = Types::kBayesClassifier;
fStr2type["Committee"] = Types::kCommittee;
fStr2type["SeedDistance"] = Types::kSeedDistance;
fStr2type["Plugins"] = Types::kPlugins;
}
TMVA::Types::EMVA TMVA::Types::GetMethodType( const TString& method ) const
{
std::map<TString, EMVA>::const_iterator it = fStr2type.find( method );
if (it == fStr2type.end()) {
fLogger << kINFO << "unknown method " << method << Endl;
return kMaxMethod;
}
else return it->second;
}
Last change: Sat Nov 1 10:22:01 2008
Last generated: 2008-11-01 10:22
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.