38 return m[0][0] * m[1][1] * m[2][2]
39 + m[0][1] * m[1][2] * m[2][0]
40 + m[0][2] * m[1][0] * m[2][1]
41 - m[2][0] * m[1][1] * m[0][2]
42 - m[2][1] * m[1][2] * m[0][0]
43 - m[2][2] * m[1][0] * m[0][1];
55 void FitPolynom(T x, T xend, T y,
double & a,
double & b,
double & c)
67 for (xi=x, yi=y; xi != xend; ++xi, ++yi) {
137 #endif // _FITPOLYNOM_H
double m[3][3]
we define the Matrix3 as 3 colums of 3 rows
double Determinant() const
get the determinant
static const double A(-0.75)
general : Matrix3 is a class for handling 3x3 Matrix manipulation.
void FitPolynom(T x, T xend, T y, double &a, double &b, double &c)
fit a second order polynom to a data set
double calcDeterminant3(const M &m)
calculate the determinat of a 3x3 matrix using the sarrus formula