Class FourierSeries

java.lang.Object
org.ojalgo.function.series.FourierSeries
All Implemented Interfaces:
DoubleUnaryOperator, Function<Double,Double>, UnaryOperator<Double>, BasicFunction, PrimitiveFunction.Unary, UnaryFunction<Double>

public class FourierSeries extends Object implements PrimitiveFunction.Unary
This is the real coefficient trigonometric form of the Fourier series.
  • Field Details

    • ACCURACY

      private static final NumberContext ACCURACY
    • myAngularFrequency

      private final double myAngularFrequency
    • myCosCoefficients

      private final double[] myCosCoefficients
    • mySinCoefficients

      private final double[] mySinCoefficients
  • Constructor Details

    • FourierSeries

      public FourierSeries(double period, ComplexNumber... coefficients)
      Parameters:
      period - The period of the function
      coefficients - 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.
    • FourierSeries

      FourierSeries(double period, double[] cosCoefficients, double[] sinCoefficients)
  • Method Details