1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2025-06-19 15:57:05 +01:00

method to get fit p-value from fit interface

This commit is contained in:
2015-11-25 18:29:31 +00:00
parent 25698fc6b2
commit e950e18639
5 changed files with 19 additions and 2 deletions

View File

@ -39,8 +39,9 @@ int main(void)
data.fitAllPoints();
p = data.fit(minimizer, init, f);
cout << "a= " << p(0) << " b= " << p(1)
<< " chi^2/ndof= " << p.getChi2PerDof() << endl;
cout << "a= " << p(0) << " b= " << p(1);
cout << " chi^2/ndof= " << p.getChi2PerDof();
cout << " p-value= " << p.getPValue() <<endl;
// plot result
Plot plot;