Package Spectrogram

Class WindowFunction

java.lang.Object
Spectrogram.WindowFunction

public class WindowFunction extends Object
Window function for use with FFT.
Author:
Douglas Gillespie
  • Field Details Link icon

  • Constructor Details Link icon

    • WindowFunction Link icon

      public WindowFunction()
  • Method Details Link icon

    • getNames Link icon

      public static String[] getNames()
    • getWindowFunc Link icon

      public static double[] getWindowFunc(int windowType, int length)
    • hamming Link icon

      public static double[] hamming(int length)
    • hann Link icon

      public static double[] hann(int length)
    • rectangular Link icon

      public static double[] rectangular(int length)
    • bartlett Link icon

      public static double[] bartlett(int length)
    • blackman Link icon

      public static double[] blackman(int length)
    • blackmanharris Link icon

      public static double[] blackmanharris(int length)
    • tukey Link icon

      public static double[] tukey(int length, double a)
      also known as tapered-cosine, for a=0 becomes rectangular and a=1 becomes hann
      Parameters:
      length -
      Returns:
    • getWindowGain Link icon

      public static double getWindowGain(double[] windowFunction)
      Calculate the gain of the window function
      Parameters:
      windowFunction - window function array
      Returns:
      window rms gain as a factor (NOT dB);