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 Nested const & getNested() const noexcept
Return the nested basis.
A 1-d basis that transforms all input points before evaluating nested basis.
Scaled scaled(Scaling1d const &first) const
Return a further-scaled basis with the same order.
std::size_t getOrder() const
Return the order of the basis.
Summation using regular floating-point addition.
Scaling1d const & getScaling() const noexcept
Return the scaling transform.
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...
SumMode
Enum used to control how to sum polynomial terms.
A 1-d function defined by a series expansion and its coefficients.
A base class for image defects.
double sumWith(double x, Vector const &coefficients, SumMode mode=SumMode::FAST) const
Evaluate a basis expansion with the given coefficients.
Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > Vector
Typedefs to be used for probability and parameter values.
Scaling1d makeUnitRangeScaling1d(double min, double max) noexcept
Return a Scaling1d that maps the interval [min, max] to [-1, 1].
table::Key< table::Array< double > > basis
ScaledBasis1d & operator=(ScaledBasis1d const &)=default
Default copy assignment.
A 1-d affine transform that can be used to map one interval to another.
std::size_t size() const
Return the number of elements in the basis.
Scaling1d then(Scaling1d const &second) const noexcept
Compose two transforms.
ScaledBasis1d(Nested const &nested, Scaling1d const &scaling)
Construct a scaled basis from a nested basis and a scaling transform.
ndarray::Array< double const, 2, 2 > coefficients
void fill(double x, Vector &&basis) const
Evaluate the basis at a given point.