33 : fit(6 * map.getNOut()), rms(0) {
34 int const nIn = map.
getNIn();
QuadApprox(Mapping const &map, std::vector< double > const &lbnd, std::vector< double > const &ubnd, int nx=3, int ny=3)
Obtain a quadratic approximation to a 2D Mapping.
AstObject const * getRawPtr() const
Get the raw AST pointer.
AST wrapper classes and functions.
void assertOK(AstObject *rawPtr1=nullptr, AstObject *rawPtr2=nullptr)
Throw std::runtime_error if AST's state is bad.
An abstract base class for objects which transform one set of coordinates to another.
std::vector< double > fit
A vector of coefficients of the quadratic approximation to the specified transformation.
double rms
The RMS residual between the fit and the Mapping, summed over all Mapping outputs.
int getNIn() const
Get NIn: the number of input axes.
void assertEqual(T1 val1, std::string const &descr1, T2 val2, std::string const &descr2)
int getNOut() const
Get NOut: the number of output axes.