25 AtA =
new NEWMAT::Matrix(4,4);
26 Atb =
new NEWMAT::Matrix(4,1);
37 AtA =
new NEWMAT::Matrix(4,4);
38 Atb =
new NEWMAT::Matrix(4,1);
88 NEWMAT::Matrix AtA_layer(4,1);
92 AtA_layer(4,1) = xx*yy;
95 *
AtA += AtA_layer * AtA_layer.t();
96 *
Atb += AtA_layer * zmea;
102 NEWMAT::Matrix Soln(4,1);
103 Soln =
AtA->i() * (*Atb);
double bl_c
linear-Y term.
virtual void clear()
Will clear everything and set it up to for another solve.
ossimLeastSquaresBilin & operator=(const ossimLeastSquaresBilin &)
virtual void addSample(double x, double yy, double zmea)
add a single data sample.
double bl_a
constant term.
virtual ~ossimLeastSquaresBilin()
Free internal storage.
virtual void setLSParams(double pa, double pb_x, double pc_y, double pd_xy)
NEWMAT::Matrix * AtA
Normal system coefficient matrix.
ossimLeastSquaresBilin()
Instantiate as zero surface.
Provide 2D Least Squares Bilinear model fitting The math model is that of a bilinear surface of the ...
virtual bool getLSParms(double &pa, double &pb_x, double &pc_y, double &pd_xy) const
return LS solution parameters.
double bl_b
linear-X term.
bool solveLS()
compute least squares parameter solution - true if succesfull.
NEWMAT::Matrix * Atb
Normal system RHS vector.