22#ifndef LSST_AFW_MATH_POLYNOMIALS_Chebyshev1Basis1d_h_INCLUDED
23#define LSST_AFW_MATH_POLYNOMIALS_Chebyshev1Basis1d_h_INCLUDED
39 static double getB0(
double x) {
return 1; }
41 static double getB1(
double x) {
return x; }
43 static double next(
double x,
std::size_t n,
double current,
double previous) {
return 2*x*current - previous; }
A Recurrence for Chebyshev polynomials of the first kind.
static double getB0(double x)
static double getB1(double x)
static double next(double x, std::size_t n, double current, double previous)
A basis for 1-d series expansions defined by a recurrence relation.
A 1-d basis that transforms all input points before evaluating nested basis.
Low-level polynomials (including special polynomials) in C++.
RecurrenceBasis1d< Chebyshev1Recurrence > Chebyshev1Basis1d
A Basis1d for Chebyshev polynomials of the first kind.
ScaledBasis1d< Chebyshev1Basis1d > ScaledChebyshev1Basis1d
A Basis1d for scaled Chebyshev polynomials of the first kind.