public final class ChebyshevDecompositionEngine extends Object
UnivariateFunction
by a Chebyshev polynomial.
Important notice: two conventions exist for defining Chebyshev polynomials:
Modifier and Type | Method and Description |
---|---|
static PolynomialChebyshevFunction |
approximateChebyshevFunction(UnivariateFunction fct,
int degree,
double start,
double end,
int nbNodes)
Approximate the given
function by a Chebyshev polynomial of the given degree on the
specified range [start ; end]. |
static PolynomialChebyshevFunction |
interpolateChebyshevFunction(double start,
double end,
double[] values)
Interpolate the values of a f function defined at the Chebyshev abscissas by a Chebyshev
polynomial on the specified range [start ; end].
|
static PolynomialChebyshevFunction |
interpolateChebyshevFunction(UnivariateFunction fct,
int degree,
double start,
double end)
Interpolate the given
function by a Chebyshev polynomial on the specified range
[start ; end]. |
public static PolynomialChebyshevFunction approximateChebyshevFunction(UnivariateFunction fct, int degree, double start, double end, int nbNodes)
function
by a Chebyshev polynomial of the given degree on the
specified range [start ; end].
The approximation is done by interpolation if the given number of nodes is smaller or equal to the degree+1 and
by fitting otherwise.fct
- Function to interpolatedegree
- Chebyshev polynomial degreestart
- Start intervalend
- End intervalnbNodes
- Number of nodesNullArgumentException
- if fct
is null
NotPositiveException
- if degree < 0
MathIllegalArgumentException
- if start >= end
public static PolynomialChebyshevFunction interpolateChebyshevFunction(UnivariateFunction fct, int degree, double start, double end)
function
by a Chebyshev polynomial on the specified range
[start ; end].fct
- Function to interpolatedegree
- Chebyshev polynomial degreestart
- Start intervalend
- End intervalNullArgumentException
- if fct
is null
NotPositiveException
- if degree < 0
MathIllegalArgumentException
- if start >= end
public static PolynomialChebyshevFunction interpolateChebyshevFunction(double start, double end, double[] values)
start
- Start rangeend
- End rangevalues
- Values of the function to interpolate defined at the Chebyshev abscissasNullArgumentException
- if values
is null
NoDataException
- if values
is emptyMathIllegalArgumentException
- if start >= end
Copyright © 2023 CNES. All rights reserved.