CMS 3D CMS Logo

SprAbsTrainedCombiner.cc

Go to the documentation of this file.
00001 //$Id: SprAbsTrainedCombiner.cc,v 1.2 2007/09/21 22:32:08 narsky Exp $
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 

Generated on Tue Jun 9 17:41:59 2009 for CMSSW by  doxygen 1.5.4