Class describing a Chebyshev series which can be used to approximate a function in a defined range [a,b] using Chebyshev polynomials. It uses the algorithm from <A HREF="http://www.gnu.org/software/gsl/manual/html_node/Chebyshev-Approximations.html">GSL</A> This class does not support copying @ingroup FuncApprox
virtual | ~Chebyshev() |
ROOT::Math::Chebyshev | Chebyshev(const ROOT::Math::IGenFunction& f, double a, double b, size_t n) |
ROOT::Math::Chebyshev | Chebyshev(ROOT::Math::GSLFuncPointer f, void* p, double a, double b, size_t n) |
ROOT::Math::Chebyshev* | Deriv() |
pair<double,double> | EvalErr(double x) const |
pair<double,double> | EvalErr(double x, size_t n) const |
ROOT::Math::Chebyshev* | Integral() |
double | operator()(double x) const |
double | operator()(double x, size_t n) const |
void | Initialize(ROOT::Math::GSLFuncPointer f, void* params, double a, double b) |
Construct a Chebyshev series approximation to a Function f in range [a,b]; constructor based on functions of type IGenFunction
Construct a Chebyshev series approximation to a Function f in range [a,b]; constructor based on free functions with gsl_function type signature
construct a Chebyshev series or order n The series must be initialized from a function
Evaluate the series at a given point x estimating both the series result and its absolute error. The error estimate is made from the first neglected term in the series. A pair containing result and error is returned
Evaluate the series at a given point, to (at most) the given order n
evaluate the series at a given point x to the given order n, estimating both the series result and its absolute error. The error estimate is made from the first neglected term in the series. A pair containing result and error is returned
Compute the derivative of the series and return a pointer to a new Chebyshev series with the derivatives coefficients. The returned pointer must be managed by the user. TO DO: implement copying to return by value
Compute the integral of the series and return a pointer to a new Chebyshev series with the integral coefficients. The lower limit of the integration is the left range value a. The returned pointer must be managed by the user TO DO: implement copying to return by value
Initialize series passing function and range