24 #ifndef LSST_AFW_MATH_ChebyshevBoundedField_h_INCLUDED 25 #define LSST_AFW_MATH_ChebyshevBoundedField_h_INCLUDED 47 "if true, only include terms where the sum of the x and y order " 48 "is less than or equal to max(orderX, orderY)");
116 ndarray::Array<double const, 2, 2>
const&
coefficients);
135 ndarray::Array<double const, 1>
const&
x,
136 ndarray::Array<double const, 1>
const&
y,
137 ndarray::Array<double const, 1>
const&
z,
138 Control
const& ctrl);
153 ndarray::Array<double const, 1>
const&
x,
154 ndarray::Array<double const, 1>
const&
y,
155 ndarray::Array<double const, 1>
const&
z,
156 ndarray::Array<double const, 1>
const&
w,
157 Control
const& ctrl);
172 template <
typename T>
202 double mean()
const override;
211 bool operator==(
BoundedField const& rhs)
const override;
226 ndarray::Array<double const, 2, 2> _coefficients;
234 #endif // !LSST_AFW_MATH_ChebyshevBoundedField_h_INCLUDED
An object passed to Persistable::write to allow it to persist itself.
def scale(algorithm, min, max=None, frame=None)
A control object used when fitting ChebyshevBoundedField to data (see ChebyshevBoundedField::fit) ...
#define LSST_CONTROL_FIELD(NAME, TYPE, DOC)
A preprocessor macro used to define fields in C++ "control object" structs.
int computeSize() const
Return the number of nonzero coefficients in the Chebyshev function defined by this object...
ChebyshevBoundedFieldControl Control
int orderY
"maximum Chebyshev function order in y" ;
A base class for image defects.
Extent< int, N > truncate(Extent< double, N > const &input) noexcept
Return the component-wise truncation (round towards zero).
bool triangular
"if true, only include terms where the sum of the x and y order " "is less than or equal to max(order...
bool isPersistable() const noexcept override
ChebyshevBoundedField is always persistable.
ndarray::Array< double const, 2, 2 > getCoefficients() const
Return the coefficient matrix.
A BoundedField based on 2-d Chebyshev polynomials of the first kind.
std::shared_ptr< BoundedField > operator*(double const scale, std::shared_ptr< BoundedField const > bf)
ChebyshevBoundedFieldControl()
An abstract base class for 2-d functions defined on an integer bounding boxes.
virtual double evaluate(lsst::geom::Point2D const &position) const =0
Evaluate the field at the given point.
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects...
A CRTP facade class for subclasses of Persistable.
An integer coordinate rectangle.
A class to represent a 2-dimensional array of pixels.
UnaryFunctionT::result_type integrate(UnaryFunctionT func, typename UnaryFunctionT::argument_type const a, typename UnaryFunctionT::argument_type const b, double eps=1.0e-6)
The 1D integrator.
ndarray::Array< double const, 2, 2 > coefficients
int orderX
"maximum Chebyshev function order in x" ;