30 namespace lsst {
namespace geom {
namespace polynomials {
35 double const s =
basis.getScaling().getScale();
36 double const v =
basis.getScaling().getShift();
42 sums[n - k] += sn*binomial(n, k)*f[n]*vk;
45 Eigen::VectorXd
result = Eigen::VectorXd::Zero(
basis.size());
47 result[n] =
static_cast<double>(sums[n]);
A 1-d function defined by a series expansion and its coefficients.
PolynomialFunction1d simplified(ScaledPolynomialFunction1d const &f)
Calculate the standard polynomial function that is equivalent to a scaled standard polynomial functio...
A base class for image defects.
A class that computes binomial coefficients up to a certain power.
Basis const & getBasis() const
Return the associated Basis1d object.
table::Key< table::Array< double > > basis
Function1d< Basis > makeFunction1d(Basis const &basis, Eigen::VectorXd const &coefficients)
Create a Function1d of the appropriate type from a Basis1d and an Eigen object containing coefficient...