org.das2.math.fft
Class FFTUtil
java.lang.Object
org.das2.math.fft.FFTUtil
public class FFTUtil
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FFTUtil
public FFTUtil()
fftPower
public static VectorDataSet fftPower(GeneralFFT fft,
VectorDataSet vds)
getWindowUnity
public static VectorDataSet getWindowUnity(int size)
getWindow10PercentEdgeCosine
public static VectorDataSet getWindow10PercentEdgeCosine(int size)
fftPower
public static VectorDataSet fftPower(GeneralFFT fft,
VectorDataSet vds,
VectorDataSet weights)
- Produces the power spectrum of the dataset. This is the length of the fourier
components squared, normalized by the bandwidth. The result dataset has dimensionless yunits.
- Parameters:
vds
- VectorDataSet with x units TimeLocationUnits.
fft
public static ComplexArray.Double fft(GeneralFFT fft,
VectorDataSet vds,
Units units)
getFrequencyDomainTags
public static double[] getFrequencyDomainTags(double fs,
int size)
- Parameters:
fs
- the sampling frequency
- Returns:
- the frequencies of the bins