1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2026-01-14 21:19:33 +00:00

XY*Data: dog is now a double

This commit is contained in:
2014-09-18 17:15:56 +01:00
parent 05f5223d31
commit c0bfb12bd7
4 changed files with 22 additions and 11 deletions

View File

@@ -32,14 +32,14 @@ double FitResult::getChi2(void) const
return chi2_;
}
Index FitResult::getNDof(void) const
{
return nDof_;
}
double FitResult::getChi2PerDof(void) const
{
return chi2_/static_cast<double>(nDof_);
return chi2_/getNDof();
}
double FitResult::getNDof(void) const
{
return static_cast<double>(nDof_);
}
const DoubleFunction & FitResult::getModel(const Index j) const
@@ -219,7 +219,6 @@ FitResult XYStatData::fit(Minimizer &minimizer, const DVec &init,
{
chi2_.requestInit();
}
// initial parameters
const Index nPoint = getNFitPoint();
DVec fullInit = init;