24 #ifndef LSST_AFW_MATH_ChebyshevBoundedField_h_INCLUDED
25 #define LSST_AFW_MATH_ChebyshevBoundedField_h_INCLUDED
33 namespace lsst {
namespace afw {
namespace math {
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)"
110 afw::geom::Box2I const & bbox,
111 ndarray::Array<
double const,1> const &
x,
112 ndarray::Array<
double const,1> const &
y,
113 ndarray::Array<
double const,1> const & z,
130 afw::geom::Box2I const & bbox,
131 ndarray::Array<
double const,1> const & x,
132 ndarray::Array<
double const,1> const & y,
133 ndarray::Array<
double const,1> const & z,
134 ndarray::Array<
double const,1> const &
w,
151 template <typename T>
207 #endif // !LSST_AFW_MATH_ChebyshevBoundedField_h_INCLUDED
ndarray::Array< double const, 2, 2 > _coefficients
virtual std::string getPythonModule() const
Return the fully-qualified Python module that should be imported to guarantee that its factory is reg...
A control object used when fitting ChebyshevBoundedField to data (see ChebyshevBoundedField::fit) ...
Point< double, 2 > Point2D
virtual void write(OutputArchiveHandle &handle) const
Write the object to one or more catalogs.
#define LSST_CONTROL_FIELD(NAME, TYPE, DOC)
int computeSize() const
Return the number of nonzero coefficients in the Chebyshev function defined by this object...
An integer coordinate rectangle.
table::Key< table::Array< Kernel::Pixel > > image
ndarray::Array< double const, 2, 2 > getCoefficients() const
Return the coefficient matrix.
ChebyshevBoundedFieldControl Control
geom::AffineTransform _toChebyshevRange
int orderY
"maximum Chebyshev function order in y" ;
static boost::shared_ptr< ChebyshevBoundedField > fit(afw::geom::Box2I const &bbox, ndarray::Array< double const, 1 > const &x, ndarray::Array< double const, 1 > const &y, ndarray::Array< double const, 1 > const &z, Control const &ctrl)
Fit a Chebyshev approximation to non-gridded data with equal weights.
virtual double evaluate(geom::Point2D const &position) const
bool triangular
"if true, only include terms where the sum of the x and y order " "is less than or equal to max(order...
virtual std::string getPersistenceName() const
Return the unique name used to persist this object and look up its factory.
A BoundedField based on 2-d Chebyshev polynomials of the first kind.
ChebyshevBoundedField(afw::geom::Box2I const &bbox, ndarray::Array< double const, 2, 2 > const &coefficients)
Initialize the field from its bounding box an coefficients.
ChebyshevBoundedFieldControl()
An abstract base class for 2-d functions defined on an integer bounding boxes.
io::OutputArchiveHandle OutputArchiveHandle
virtual bool isPersistable() const
ChebyshevBoundedField is always persistable.
ndarray::Array< double const, 2, 2 > coefficients
A CRTP facade class for subclasses of Persistable.
boost::shared_ptr< ChebyshevBoundedField > relocate(geom::Box2I const &bbox) const
boost::shared_ptr< ChebyshevBoundedField > truncate(Control const &ctrl) const
Return a new ChebyshevBoudedField with maximum orders set by the given control object.
int orderX
"maximum Chebyshev function order in x" ;