59 if ( nTot==nLeft || nLeft==0 )
return 0.;
61 Double_t parentIndex = nTot * this->GetSeparationIndex(nTot,targetTot,target2Tot);
62 Double_t leftIndex = ( (nTot - nLeft) * this->GetSeparationIndex(nTot-nLeft,targetTot-targetLeft,target2Tot-target2Left) );
63 Double_t rightIndex = nLeft * this->GetSeparationIndex(nLeft,targetLeft,target2Left);
66 return (parentIndex - leftIndex - rightIndex)/(parentIndex);
76 return ( target2 - target*target/n) /
n;
virtual Double_t GetSeparationIndex(const Double_t &n, const Double_t &target, const Double_t &target2)
Separation Index: a simple Variance.
Abstract ClassifierFactory template that handles arbitrary types.
ClassImp(TMVA::RegressionVariance) Double_t TMVA
Separation Gain: the measure of how the quality of separation of the sample increases by splitting th...