vec_math
Class PowerSpectrum

java.lang.Object
  extended by vec_math.PowerSpectrum

public class PowerSpectrum
extends Object

A class combining different methods to construct a power spectrum.


Nested Class Summary
static class PowerSpectrum.BartlettWindow
          The Bartlett window function.
static class PowerSpectrum.SquareWindow
          The Rectangular window function.
static class PowerSpectrum.Test
          Test of periodogram.
static class PowerSpectrum.WelchWindow
          The Welch window function.
 
Constructor Summary
PowerSpectrum()
           
 
Method Summary
static VectorG periodogram(VectorG data, int m, int k, Function window)
          Does a periodogram of equally sampled data points.
static VectorG simple(VectorG data, Function window)
          Simple periodogramm with no error estimates.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PowerSpectrum

public PowerSpectrum()
Method Detail

simple

public static VectorG simple(VectorG data,
                             Function window)
Simple periodogramm with no error estimates.

Parameters:
data - The data vector of power-of-two length.
window - The window function to use.

periodogram

public static VectorG periodogram(VectorG data,
                                  int m,
                                  int k,
                                  Function window)
Does a periodogram of equally sampled data points. The Vector returned are the power at frequencies j/2m, the dimension of the vector is 2m.

Parameters:
data - The data vector of length (2k+1)*m
m - A power-of-two length of the frequency array.
k - Splitting of the data set >= 1.