template<class HistT>
Definition at line 155 of file FitWeibullMarginalOld.h. References Impala::Core::Histogram::FitWeibullMarginalOld< HistT >::mBins, Impala::Core::Histogram::FitWeibullMarginalOld< HistT >::mDx, Impala::Core::Histogram::FitWeibullMarginalOld< HistT >::mHist, Impala::Core::Histogram::FitWeibullMarginalOld< HistT >::mNorm, and Impala::Core::Histogram::FitWeibullMarginalOld< HistT >::mPrecision. Referenced by Impala::Core::Histogram::FitWeibullMarginalOld< HistT >::DoFit(), and Impala::Core::Histogram::FitWeibullMarginalOld< HistT >::GFunct(). 00156 { 00157 double sum(0); 00158 double ddx = mDx/xgm; // x[i]/xgm 00159 double x = 0.5*ddx; 00160 00161 for (int i=0; i<mBins; i++, x += ddx) 00162 if (mHist[i]>mPrecision) 00163 sum += pow(x, gamma)*mHist[i]; 00164 00165 return xgm*pow(sum/mNorm, 1./gamma); 00166 }
|