LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
22 #ifndef LSST_AFW_MATH_POLYNOMIALS_ScaledBasis1d_h_INCLUDED
23 #define LSST_AFW_MATH_POLYNOMIALS_ScaledBasis1d_h_INCLUDED
28 namespace lsst {
namespace geom {
namespace polynomials {
30 template <
typename Basis>
43 template <
typename Nested>
91 Nested
const &
getNested() const noexcept {
return _nested; }
130 template <
typename Vector>
145 template <
typename Vector>
157 #endif // !LSST_AFW_MATH_POLYNOMIALS_ScaledBasis1d_h_INCLUDED
std::size_t size() const
Return the number of elements in the basis.
ndarray::Array< double const, 2, 2 > coefficients
A 1-d affine transform that can be used to map one interval to another.
double sumWith(double x, Vector const &coefficients, SumMode mode=SumMode::FAST) const
Evaluate a basis expansion with the given coefficients.
ScaledBasis1d(ScaledBasis1d const &)=default
Default copy constructor.
ScaledBasis1d & operator=(ScaledBasis1d const &)=default
Default copy assignment.
Scaling1d const & getScaling() const noexcept
Return the scaling transform.
Scaling1d makeUnitRangeScaling1d(double min, double max) noexcept
Return a Scaling1d that maps the interval [min, max] to [-1, 1].
A 1-d basis that transforms all input points before evaluating nested basis.
SumMode
Enum used to control how to sum polynomial terms.
ScaledBasis1d & operator=(ScaledBasis1d &&)=default
Default move assignment.
Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > Vector
table::Key< table::Array< double > > basis
A 1-d function defined by a series expansion and its coefficients.
Scaled scaled(Scaling1d const &first) const
Return a further-scaled basis with the same order.
A base class for image defects.
ScaledBasis1d(Nested const &nested, Scaling1d const &scaling)
Construct a scaled basis from a nested basis and a scaling transform.
void fill(double x, Vector &&basis) const
Evaluate the basis at a given point.
ScaledBasis1d(ScaledBasis1d &&)=default
Default move constructor.
std::size_t getOrder() const
Return the order of the basis.
table::Key< double > scaling
@ FAST
Summation using regular floating-point addition.
ScaledBasis1d(std::size_t order, double min, double max)
Construct a basis that remaps the given interval to [-1, 1] before evaluating the nested basis.
Nested const & getNested() const noexcept
Return the nested basis.