public class GaussWindow extends Window
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_SIGMA |
protected double |
sigma |
protected double |
sigmasquare |
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
protected void |
initialise()
The initialisation of the window array with multiplication factors corresponding to the specific windowing function.
|
static void |
main(String[] args) |
String |
toString() |
apply, apply, apply, apply, apply, applyInline, applyInline, applyInline, get, get, getAvailableTypes, getCoeffs, getCoeffsLeftHalf, getCoeffsRightHalf, getLength, getTypeByName, getTypeName, normalize, normalize, normalizePeakValue, normalizeRange, normalizeSquaredSum, type, value
public static final double DEFAULT_SIGMA
protected double sigma
protected double sigmasquare
public GaussWindow(int length)
length
- the length of the window, in samples (must be an odd number)public GaussWindow(int length, double prescalingFactor)
length
- the length of the window, in samples (must be an odd number)prescalingFactor
- prescaling factorpublic GaussWindow(int length, double sigma, double prescalingFactor)
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.prescalingFactor
- prescaling factorprotected void initialise()
Window
initialise
in class Window
public static void main(String[] args)
Copyright © 2000–2016 DFKI GmbH. All rights reserved.