12#include <QApplication>
23void FittingStatistics::calculateCurveFit (
int orderReduced,
26 int significantDigits)
54 if (
order < a.size ()) {
71 int significantDigits,
103 LOG4CPP_DEBUG_S ((*
mainCat)) <<
"FittingStatistics::calculateCurveFitReducedFurther succeeded with order="
105 <<
" expectedIdentity="
117 int significantDigits)
120 qApp->setOverrideCursor (Qt::WaitCursor);
138 qApp->restoreOverrideCursor();
149 FittingPointsConvenient::const_iterator
itrC;
185void FittingStatistics::loadXAndYArrays (
int orderReduced,
194 FittingPointsConvenient::const_iterator
itr;
const int INNER_RADIUS_MIN
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) && !defined(QT_FORCE_ASSERTS) define ENGAUGE...
QVector< double > FittingCurveCoefficients
Coefficients x0, x1, ... in y = a0 + a1 * x + a2 * x^2 + ...
QList< QPointF > FittingPointsConvenient
Array of (x,y) points in graph coordinates.
const int MAX_POLYNOMIAL_ORDER
log4cpp::Category * mainCat
MatrixConsistent
Indicates if matrix is consistent (i.e. has at least one solution)
FittingStatistics()
Single constructor.
void calculateCurveFitAndStatistics(unsigned int order, const FittingPointsConvenient &pointsConvenient, FittingCurveCoefficients &coefficients, double &mse, double &rms, double &rSquared, int significantDigits)
Compute the curve fit and the statistics for that curve fit.
virtual ~FittingStatistics()
Matrix class that supports arbitrary NxN size.
double determinant() const
Return the determinant of this matrix.
Matrix inverse(int significantDigits, MatrixConsistent &matrixConsistent) const
Return the inverse of this matrix.
Matrix transpose() const
Return the transpose of the current matrix.
QString toString() const
Dump matrix to a string.
#define LOG4CPP_DEBUG_S(logger)