00001
00002
00003 #include "PhysicsTools/StatPatternRecognition/interface/SprExperiment.hh"
00004 #include "PhysicsTools/StatPatternRecognition/interface/SprAbsTrainedCombiner.hh"
00005
00006 using namespace std;
00007
00008
00009 bool SprAbsTrainedCombiner::features(const std::vector<double>& v,
00010 std::vector<double>& features) const
00011 {
00012 if( classifiers_.empty() ) return false;
00013 features.clear();
00014 for( int i=0;i<classifiers_.size();i++ )
00015 features.push_back(classifiers_[i]->response(v));
00016 return true;
00017 }
00018
00019