1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2025-12-30 08:34:43 +00: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

@@ -18,10 +18,12 @@
*/
#include <LatAnalyze/XYSampleData.hpp>
#include <LatAnalyze/Math.hpp>
#include <LatAnalyze/includes.hpp>
using namespace std;
using namespace Latan;
using namespace Math;
/******************************************************************************
* SampleFitResult implementation *
@@ -51,6 +53,11 @@ double SampleFitResult::getNDof(void) const
return static_cast<double>(nDof_);
}
double SampleFitResult::getPValue(const Index s) const
{
return chi2PValue(getChi2(s), getNDof());
}
const DoubleFunction & SampleFitResult::getModel(const Index s,
const Index j) const
{