Class AutoCorrelation


  • public class AutoCorrelation
    extends Object
    Contains methods related to autocorrelation. See WikiPedia.
    Version:
    $Revision$
    Author:
    Gene (Stackoverflow), FracPete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • AutoCorrelation

        public 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 length
        normalize - whether to normalize the output
        Returns:
        the autocorrelation
      • getTechnicalInformation

        public static TechnicalInformation getTechnicalInformation()
        Returns technical information on autocorrelation.
        Returns:
        the technical information