Engauge Digitizer  2
Public Member Functions | List of all members
FittingStatistics Class Reference

This class does the math to compute statistics for FittingWindow. More...

#include <FittingStatistics.h>

Public Member Functions

 FittingStatistics ()
 Single constructor.
 
void calculateCurveFitAndStatistics (unsigned int order, const FittingPointsConvenient &pointsConvenient, FittingCurveCoefficients &coefficients, double &mse, double &rms, double &rSquared)
 Compute the curve fit and the statistics for that curve fit. More...
 

Detailed Description

This class does the math to compute statistics for FittingWindow.

Definition at line 19 of file FittingStatistics.h.

Member Function Documentation

◆ calculateCurveFitAndStatistics()

void FittingStatistics::calculateCurveFitAndStatistics ( unsigned int  order,
const FittingPointsConvenient &  pointsConvenient,
FittingCurveCoefficients &  coefficients,
double &  mse,
double &  rms,
double &  rSquared 
)

Compute the curve fit and the statistics for that curve fit.

Parameters
orderRequested order of the polynomial to be fitted. This will be reduced if there are not enough points just enough to prevent having an undetermined system (=more degrees of freedom than constraints) since otherwise there wil be an infinite number of solutions
pointsConvenientInput data consisting of (x,y) points in graph coordinates
coefficientsOutput coefficients a0, a1, and so on in y = a0 + a1 * x + a2 * x^2 + ...
mseMean squared error between the original data and the fitted curve
rmsRoot mean square error between the original data and the fitted curve
rSquaredR-squared error between the original data and the fitted curve

Definition at line 68 of file FittingStatistics.cpp.


The documentation for this class was generated from the following files: