vec_math
Class Fourier.Series

java.lang.Object
  extended by vec_math.Fourier.Series
All Implemented Interfaces:
Multidimensional
Enclosing class:
Fourier

public static class Fourier.Series
extends Object
implements Multidimensional

A Fourier series multidimensional is the representation of a discrete Fouriere series up to a specified order M. In its Multidimensional use, it calculates the square sum of the measured values y to the model fit, specified by the parameters given, which have the meaning according to:

       y_f=ΣMa2k-1ċcos(2πkċa_0ċt)+a2kċsin(2πkċa_0ċt)
       
A concrete value of the fourier transformation is available with solve(vec_math.VectorG, double) which provides a Vector of a's and a value of t.


Field Summary
private  Vector2D[] measures
          The vector of measures y at times x.
private  int order
          The order of the fourier series.
 
Constructor Summary
protected Fourier.Series(Vector2D[] ty, int m)
          Constructs a new Fourier series.
 
Method Summary
 int dimension()
          The number of parameters of this series is the principal frequency, plus two parameters for each order, thus 2*oreder+1.
 double evaluate(VectorG fanbn)
          Evaluates a fourier series with the given set of coefficents and frequency.
protected  Vector2D[] getMeasures()
          Returns the data array.
protected static double solve(VectorG fanbn, double t)
          We evaluate a fourier series for a given set of amplitudes and a principal frequency for the given time t.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

measures

private Vector2D[] measures
The vector of measures y at times x.


order

private int order
The order of the fourier series.

Constructor Detail

Fourier.Series

protected Fourier.Series(Vector2D[] ty,
                         int m)
Constructs a new Fourier series.

Method Detail

evaluate

public double evaluate(VectorG fanbn)
Evaluates a fourier series with the given set of coefficents and frequency. The principal frequency is always the number at index zero, and the dimension of the input vector must be 2*order+1.

Specified by:
evaluate in interface Multidimensional

dimension

public int dimension()
The number of parameters of this series is the principal frequency, plus two parameters for each order, thus 2*oreder+1.

Specified by:
dimension in interface Multidimensional

getMeasures

protected Vector2D[] getMeasures()
Returns the data array.


solve

protected static double solve(VectorG fanbn,
                              double t)
We evaluate a fourier series for a given set of amplitudes and a principal frequency for the given time t.