Package adams.data.utils
Class AutoCorrelation
- java.lang.Object
-
- adams.data.utils.AutoCorrelation
-
-
Constructor Summary
Constructors Constructor Description AutoCorrelation()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double[]
bruteForce(double[] x)
This is a "wrapped" signal processing-style autocorrelation.static double[]
fft(double[] x, boolean normalize)
Uses FFT to perform autocorrelation.static TechnicalInformation
getTechnicalInformation()
Returns technical information on autocorrelation.
-
-
-
Method Detail
-
bruteForce
public static double[] bruteForce(double[] x)
This is a "wrapped" signal processing-style autocorrelation. For "true" autocorrelation, the data must be zero padded.- Parameters:
x
- the sigal, must be even length- Returns:
- the autocorrelation
-
fft
public static double[] fft(double[] x, boolean normalize)
Uses FFT to perform autocorrelation.- Parameters:
x
- the sigal, must be even lengthnormalize
- whether to normalize the output- Returns:
- the autocorrelation
-
getTechnicalInformation
public static TechnicalInformation getTechnicalInformation()
Returns technical information on autocorrelation.- Returns:
- the technical information
-
-