java.lang.Object
org.ojalgo.function.series.FourierSeries
- All Implemented Interfaces:
DoubleUnaryOperator,Function<Double,,Double> UnaryOperator<Double>,BasicFunction,PrimitiveFunction.Unary,UnaryFunction<Double>
This is the real coefficient trigonometric form of the Fourier series.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ojalgo.function.BasicFunction
BasicFunction.Differentiable<N extends Comparable<N>,F extends BasicFunction>, BasicFunction.Integratable<N extends Comparable<N>, F extends BasicFunction>, BasicFunction.PlainUnary<T, R> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FourierSeriesestimate(DoubleUnaryOperator function, PrimitiveFunction.SampleDomain sampleDomain) static FourierSeriesestimate(PeriodicFunction function, int nbSamples) doubleinvoke(double arg) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.DoubleUnaryOperator
andThen, composeMethods inherited from interface org.ojalgo.function.PrimitiveFunction.Unary
invokeMethods inherited from interface org.ojalgo.function.UnaryFunction
andThen, apply, applyAsDouble, compose, invoke, invoke, invoke, invoke, invoke
-
Constructor Details
-
FourierSeries
- Parameters:
period- The period of the functioncoefficients- The Fourier coefficients. The first coefficient is the constant term (the real part of that complex number), then the following coefficients are the coefficients of the cos and sin terms with increasing frequency.
-
-
Method Details
-
estimate
public static FourierSeries estimate(DoubleUnaryOperator function, PrimitiveFunction.SampleDomain sampleDomain) -
estimate
-
invoke
public double invoke(double arg) - Specified by:
invokein interfaceUnaryFunction<Double>
-