40 ClassImp(TMVA::RegressionVariance);
70 Double_t TMVA::RegressionVariance::GetSeparationGain(
const Double_t nLeft,
71 const Double_t targetLeft,
const Double_t target2Left,
73 const Double_t targetTot,
const Double_t target2Tot)
76 if ( nTot==nLeft || nLeft==0 )
return 0.;
78 Double_t parentIndex = nTot * this->GetSeparationIndex(nTot,targetTot,target2Tot);
79 Double_t leftIndex = ( (nTot - nLeft) * this->GetSeparationIndex(nTot-nLeft,targetTot-targetLeft,target2Tot-target2Left) );
80 Double_t rightIndex = nLeft * this->GetSeparationIndex(nLeft,targetLeft,target2Left);
83 return (parentIndex - leftIndex - rightIndex)/(parentIndex);
89 Double_t TMVA::RegressionVariance::GetSeparationIndex(
const Double_t n,
90 const Double_t target,
const Double_t target2)
93 return ( target2 - target*target/n) / n;