public final class FourierDecompositionEngine extends Object
UnivariateFunction as a Fourier Series using TrigonometricPolynomialFunction
representation.TrigonometricPolynomialFunctionintegrator, the user must create an instance of this class, set the parameters and
then call the decompose() method :
FourierDecompositionEngine engine = new FourierDecompositionEngine(integrator);
engine.setOrder(10);
engine.setFunction(userFunction, userFunctionPeriod);
FourierSeriesApproximation approximation = engine.decompose();
| Constructor and Description |
|---|
FourierDecompositionEngine(UnivariateIntegrator newIntegrator)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
FourierSeriesApproximation |
decompose()
Decompose function
f, using user given period t and integrator, into a
Fourier Series of order order. |
int |
getMaxEvals() |
int |
getOrder() |
double |
getPeriod() |
void |
setFunction(UnivariateFunction function,
double period)
Set the
UnivariateFunction to decompose and its period. |
void |
setIntegrator(UnivariateIntegrator newIntegrator)
Set the
UnivariateIntegrator to use for the serires coefficient computation. |
void |
setMaxEvals(int maxEvaluations)
Set the maximum evaluations allowed for the integrator.
|
void |
setOrder(int newOrder) |
public FourierDecompositionEngine(UnivariateIntegrator newIntegrator)
FourierDecompositionEngine class with the specified integrator.newIntegrator - integrator to usepublic int getOrder()
public void setOrder(int newOrder)
newOrder - the order to setpublic double getPeriod()
public int getMaxEvals()
public void setMaxEvals(int maxEvaluations)
maxEvaluations - the maximum evaluations for the integratorpublic void setIntegrator(UnivariateIntegrator newIntegrator)
UnivariateIntegrator to use for the serires coefficient computation.newIntegrator - to usepublic void setFunction(UnivariateFunction function, double period)
UnivariateFunction to decompose and its period. function - to decomposeperiod - period of functionpublic FourierSeriesApproximation decompose()
f, using user given period t and integrator, into a
Fourier Series of order order.
Warning : the user must make sure the given period t is coherent with the function
f.FourierSeriesApproximation instance containing the Fourier Series approximation of the user
function and the latter.Copyright © 2025 CNES. All rights reserved.