marytts.signalproc.window
Class GaussWindow

java.lang.Object
  extended by marytts.signalproc.window.Window
      extended by marytts.signalproc.window.GaussWindow
All Implemented Interfaces:
CopyingDataProcessor, InlineDataProcessor

public class GaussWindow
extends Window

Author:
Marc Schröder

Field Summary
static double DEFAULT_SIGMA
           
protected  double sigma
           
protected  double sigmasquare
           
 
Fields inherited from class marytts.signalproc.window.Window
BARTLETT, BLACKMAN, evenLength, FLATTOP, GAUSS, HAMMING, HANNING, prescalingFactor, RECT, window
 
Constructor Summary
GaussWindow(int length)
          Crate a Gauss window with the given length and a default sigma.
GaussWindow(int length, double prescalingFactor)
          Crate a Gauss window with the given length and a default sigma, and apply a prescaling factor to each sample in the window.
GaussWindow(int length, double sigma, double prescalingFactor)
          Create a Gauss window with the given length and sigma.
 
Method Summary
protected  void initialise()
          The initialisation of the window array with multiplication factors corresponding to the specific windowing function.
static void main(java.lang.String[] args)
           
 java.lang.String toString()
           
 
Methods inherited from class marytts.signalproc.window.Window
apply, apply, apply, apply, apply, applyInline, applyInline, applyInline, get, get, getAvailableTypes, getCoeffs, getCoeffsLeftHalf, getCoeffsRightHalf, getLength, getTypeByName, getTypeName, normalize, normalize, normalizePeakValue, normalizeRange, normalizeSquaredSum, type, value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_SIGMA

public static final double DEFAULT_SIGMA
See Also:
Constant Field Values

sigma

protected double sigma

sigmasquare

protected double sigmasquare
Constructor Detail

GaussWindow

public GaussWindow(int length)
Crate a Gauss window with the given length and a default sigma.

Parameters:
length - the length of the window, in samples (must be an odd number)

GaussWindow

public GaussWindow(int length,
                   double prescalingFactor)
Crate a Gauss window with the given length and a default sigma, and apply a prescaling factor to each sample in the window.

Parameters:
length - the length of the window, in samples (must be an odd number)

GaussWindow

public GaussWindow(int length,
                   double sigma,
                   double prescalingFactor)
Create a Gauss window with the given length and sigma.

Parameters:
length - the length of the window, in samples (should be an odd number)
sigma - the sigma coefficient in the Gauss curve. A good starting point is 100.
Method Detail

initialise

protected void initialise()
Description copied from class: Window
The initialisation of the window array with multiplication factors corresponding to the specific windowing function. This needs to be implemented by each subclass.

Specified by:
initialise in class Window

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

main

public static void main(java.lang.String[] args)