mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2024-11-14 01:45:35 +00:00
more precise output for fit results
This commit is contained in:
parent
e7fd245c10
commit
1a6b877f4e
@ -98,7 +98,7 @@ void SampleFitResult::print(const bool printXsi, ostream &out) const
|
|||||||
Index pMax = printXsi ? size() : nPar_;
|
Index pMax = printXsi ? size() : nPar_;
|
||||||
DMat err = this->variance().cwiseSqrt();
|
DMat err = this->variance().cwiseSqrt();
|
||||||
|
|
||||||
sprintf(buf, "chi^2/dof= %.1f/%d= %.2f -- p-value= %.2e", getChi2(),
|
sprintf(buf, "chi^2/dof= %.1e/%d= %.2e -- p-value= %.2e", getChi2(),
|
||||||
static_cast<int>(getNDof()), getChi2PerDof(), getPValue());
|
static_cast<int>(getNDof()), getChi2PerDof(), getPValue());
|
||||||
out << buf << endl;
|
out << buf << endl;
|
||||||
for (Index p = 0; p < pMax; ++p)
|
for (Index p = 0; p < pMax; ++p)
|
||||||
|
@ -66,7 +66,7 @@ void FitResult::print(const bool printXsi, ostream &out) const
|
|||||||
char buf[256];
|
char buf[256];
|
||||||
Index pMax = printXsi ? size() : nPar_;
|
Index pMax = printXsi ? size() : nPar_;
|
||||||
|
|
||||||
sprintf(buf, "chi^2/dof= %.1f/%d= %.2f -- p-value= %.2e", getChi2(),
|
sprintf(buf, "chi^2/dof= %.1e/%d= %.2e -- p-value= %.2e", getChi2(),
|
||||||
static_cast<int>(getNDof()), getChi2PerDof(), getPValue());
|
static_cast<int>(getNDof()), getChi2PerDof(), getPValue());
|
||||||
out << buf << endl;
|
out << buf << endl;
|
||||||
for (Index p = 0; p < pMax; ++p)
|
for (Index p = 0; p < pMax; ++p)
|
||||||
|
Loading…
Reference in New Issue
Block a user