74 "If > 0: new points are generated according to Gauss around best value and with \"Sigma\" in units of interval length" );
91 Log() <<
kHEADER <<
"<MCFitter> Sampling, please be patient ..." <<
Endl;
95 Log() <<
kFATAL <<
"<Run> Mismatch in number of parameters: " 102 std::vector<Double_t> parameters;
103 std::vector<Double_t> bestParameters;
108 std::vector<TMVA::GeneticRange*> rndRanges;
111 std::vector< TMVA::Interval* >::const_iterator rIt;
115 val = rndRanges.back()->Random();
116 parameters.push_back( val );
117 bestParameters.push_back( val );
120 std::vector<Double_t>::iterator parIt;
121 std::vector<Double_t>::iterator parBestIt;
132 parIt = parameters.begin();
134 parBestIt = bestParameters.begin();
135 for (std::vector<TMVA::GeneticRange*>::iterator rndIt = rndRanges.begin(); rndIt<rndRanges.end(); rndIt++) {
136 (*parIt) = (*rndIt)->Random(
kTRUE, (*parBestIt),
fSigma );
142 for (std::vector<TMVA::GeneticRange*>::iterator rndIt = rndRanges.begin(); rndIt<rndRanges.end(); rndIt++) {
143 (*parIt) = (*rndIt)->Random();
152 if (estimator < bestFit || sample==0) {
154 bestParameters.swap( parameters );
160 pars.swap( bestParameters );
const std::vector< TMVA::Interval * > fRanges
Random number generator class based on M.
MsgLogger & Endl(MsgLogger &ml)
OptionBase * DeclareOptionRef(T &ref, const TString &name, const TString &desc="")
void DrawProgressBar(Int_t, const TString &comment="")
draws progress bar in color or B&W caution:
TString GetElapsedTime(Bool_t Scientific=kTRUE)
Double_t Run()
estimator function interface for fitting
void SetParameters(Int_t cycles)
set MC fitter configuration parameters
Double_t EstimatorFunction(std::vector< Double_t > ¶meters)
estimator function interface for fitting
void DeclareOptions()
Declare MCFitter options.
virtual Double_t Uniform(Double_t x1=1)
Returns a uniform deviate on the interval (0, x1).
Abstract ClassifierFactory template that handles arbitrary types.
const char * GetName() const
Returns name of object.