|
Isis 3.0 Object Programmers' Reference |
Home |
#include <SurfaceModel.h>
Collaboration diagram for Isis::SurfaceModel:

Given a set of (x,y,z) triplets, this class will model the surface that best fits the points. The equation to be modelled is:
For internal use only.
Definition at line 50 of file SurfaceModel.h.
Public Member Functions | |
| SurfaceModel () | |
| Constructor. | |
| ~SurfaceModel () | |
| Destructor. | |
| void | AddTriplet (const double x, const double y, const double z) |
| After all knowns are added invoke the Solve method. | |
| void | AddTriplets (const double *x, const double *y, const double *z, const int n) |
| After all knowns are added invoke the Solve method. | |
| void | AddTriplets (const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &z) |
| After all knowns are added invoke the Solve method. | |
| void | Solve () |
| Fit a surface to the input triplets. | |
| double | Evaluate (const double x, const double y) |
| Solve method is invoked. | |
| int | MinMax (double &x, double &y) |
| After invoking Solve, a coordinate (x,y) at a local minimum (or maximum) of the surface model can be computed using this method. | |
Private Attributes | |
| LeastSquares * | p_lsq |
| PolynomialBivariate * | p_poly2d |
| Isis::SurfaceModel::SurfaceModel | ( | ) |
| Isis::SurfaceModel::~SurfaceModel | ( | ) |
| void Isis::SurfaceModel::AddTriplet | ( | const double | x, | |
| const double | y, | |||
| const double | z | |||
| ) |
After all knowns are added invoke the Solve method.
Definition at line 18 of file SurfaceModel.cpp.
References Isis::LeastSquares::AddKnown(), and p_lsq.
Referenced by AddTriplets().
| void Isis::SurfaceModel::AddTriplets | ( | const std::vector< double > & | x, | |
| const std::vector< double > & | y, | |||
| const std::vector< double > & | z | |||
| ) |
After all knowns are added invoke the Solve method.
Definition at line 36 of file SurfaceModel.cpp.
References AddTriplet().
| void Isis::SurfaceModel::AddTriplets | ( | const double * | x, | |
| const double * | y, | |||
| const double * | z, | |||
| const int | n | |||
| ) |
After all knowns are added invoke the Solve method.
Definition at line 27 of file SurfaceModel.cpp.
References AddTriplet().
| double Isis::SurfaceModel::Evaluate | ( | const double | x, | |
| const double | y | |||
| ) |
Solve method is invoked.
Definition at line 51 of file SurfaceModel.cpp.
References Isis::LeastSquares::Evaluate(), and p_lsq.
| int Isis::SurfaceModel::MinMax | ( | double & | x, | |
| double & | y | |||
| ) |
After invoking Solve, a coordinate (x,y) at a local minimum (or maximum) of the surface model can be computed using this method.
Definition at line 64 of file SurfaceModel.cpp.
References b, c, Isis::BasisFunction::Coefficient(), d, e, and p_poly2d.
| void Isis::SurfaceModel::Solve | ( | ) |
Fit a surface to the input triplets.
Definition at line 45 of file SurfaceModel.cpp.
References p_lsq, and Isis::LeastSquares::Solve().