7 #ifndef FITTING_STATISTICS_H 8 #define FITTING_STATISTICS_H 10 #include "FittingCurveCoefficients.h" 11 #include "FittingPointsConvenient.h" 14 const int MAX_POLYNOMIAL_ORDER = 9;
36 const FittingPointsConvenient &pointsConvenient,
37 FittingCurveCoefficients &coefficients,
44 void calculateCurveFit (
int orderReduced,
45 const FittingPointsConvenient &pointsConvenient,
46 FittingCurveCoefficients &coefficients);
47 void calculateStatistics (
const FittingPointsConvenient &pointsConvenient,
48 const FittingCurveCoefficients &coefficients,
52 void loadXAndYArrays (
int orderReduced,
53 const FittingPointsConvenient &pointsConvenient,
55 QVector<double> &Y)
const;
56 double yFromXAndCoefficients (
const FittingCurveCoefficients &coefficients,
60 #endif // FITTING_STATISTICS_H FittingStatistics()
Single constructor.
Matrix class that supports arbitrary NxN size.
This class does the math to compute statistics for FittingWindow.
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.