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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user