Class Spectrum
java.lang.Object
math.Spectrum
This class perform spectral analysis and has also some useful functions for
DSP
- Author:
- Federico Granata
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic double[]periodogramOfReal(double[] data, int start, int n) periodogramOfReal return the periodogram of a real sequence.static double[]zeroPad(double[] data) given a sequence it return the same sequence padded with zeros to the nearest power of 2
-
Constructor Details
-
Spectrum
public Spectrum()
-
-
Method Details
-
periodogramOfReal
public static double[] periodogramOfReal(double[] data, int start, int n) periodogramOfReal return the periodogram of a real sequence.- Parameters:
data- the data sequence- Returns:
- the spectrum
-
zeroPad
public static double[] zeroPad(double[] data) given a sequence it return the same sequence padded with zeros to the nearest power of 2- Parameters:
data- the sequence to be padded- Returns:
- the padded sequence
-