LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
33 : fit(6 * map.getNOut()), rms(0) {
34 int const nIn = map.
getNIn();
double rms
The RMS residual between the fit and the Mapping, summed over all Mapping outputs.
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.
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.
int getNOut() const
Get NOut: the number of output axes.
std::vector< double > fit
A vector of coefficients of the quadratic approximation to the specified transformation.
AST wrapper classes and functions.
int getNIn() const
Get NIn: the number of input axes.
AstObject const * getRawPtr() const
Get the raw AST pointer.
void assertEqual(T1 val1, std::string const &descr1, T2 val2, std::string const &descr2)