|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.math3.analysis.polynomials.FourierDecompositionEngine
public final class FourierDecompositionEngine
Decompose a 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 Summary | |
|---|---|
FourierDecompositionEngine(UnivariateIntegrator newIntegrator)
Constructor. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FourierDecompositionEngine(UnivariateIntegrator newIntegrator)
FourierDecompositionEngine class with the specified integrator.
newIntegrator - integrator to use| Method Detail |
|---|
public 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 use
public 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||