marf.math
Class Algorithms.Hamming

java.lang.Object
  extended by marf.math.Algorithms.Hamming
Enclosing class:
Algorithms

public static final class Algorithms.Hamming
extends java.lang.Object

A collection of Hamming Window-related algorithms.

Author:
Stephen Sinclair, Serguei Mokhov

Constructor Summary
Algorithms.Hamming()
           
 
Method Summary
static void hamming(double[] padWindow)
          Applies hamming window to an array of doubles.
static double hamming(int piN, int piLength)
          Retrieves a single value of hamming window based on length and index within the window.
static double sqrtHamming(int piIndex, int piSize)
          Calculates square root Hamming window value given index and size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Algorithms.Hamming

public Algorithms.Hamming()
Method Detail

hamming

public static final double hamming(int piN,
                                   int piLength)
Retrieves a single value of hamming window based on length and index within the window.

Parameters:
piN - index into the window
piLength - the total length of the window
Returns:
the hamming value within the window length; 0 if outside of the window

hamming

public static final void hamming(double[] padWindow)
Applies hamming window to an array of doubles.

Parameters:
padWindow - array of doubles to apply windowing to
Since:
0.2.0

sqrtHamming

public static final double sqrtHamming(int piIndex,
                                       int piSize)
Calculates square root Hamming window value given index and size.

Parameters:
piIndex - window index
piSize - window size
Returns:
resulting squared hamming window
Since:
0.3.0.2


SourceForge Logo