public abstract class WindowFunction extends Object implements MapFunction<float[]>
Classic window functions like triangle, Hamming and Hann.
Note that some implementations may re-use their output buffer!
Modifier and Type | Class and Description |
---|---|
static class |
WindowFunction.Hamming
Hamming window function.
|
static class |
WindowFunction.Hann
Hann window function.
|
static class |
WindowFunction.InverseWindowFunction
Helper class to invert (1/x) window functions.
|
static class |
WindowFunction.Triangle
Triangle window function.
|
static class |
WindowFunction.Welch
Welch window function.
|
Modifier and Type | Field and Description |
---|---|
static MapFunction<float[]> |
HAMMING
Function that always uses a Hamming window that is as long as the provided data.
|
static MapFunction<float[]> |
HANN
Function that always uses a Hann window that is as long as the provided data.
|
static MapFunction<float[]> |
TRIANGLE
Triangle function that always uses a triangle that is as long as the provided data.
|
static MapFunction<float[]> |
WELCH
Function that always uses a Welch window that is as long as the provided data.
|
Constructor and Description |
---|
WindowFunction(float[] coefficients) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
float[] |
getCoefficients() |
int |
getLength() |
int |
hashCode() |
WindowFunction |
invert()
Inverts this window function.
|
float[] |
map(float[] data)
Maps an object (usually an array, an
RealAudioBuffer
or a List ) to another one of the same size. |
public static MapFunction<float[]> TRIANGLE
public static MapFunction<float[]> HANN
public static MapFunction<float[]> HAMMING
public static MapFunction<float[]> WELCH
public float[] getCoefficients()
public int getLength()
public float[] map(float[] data)
MapFunction
RealAudioBuffer
or a List
) to another one of the same size.map
in interface MapFunction<float[]>
data
- datapublic WindowFunction invert()
1/x
.Copyright © 2011–2020 tagtraum industries incorporated. All rights reserved.