| Constructor and Description |
|---|
GriffinLim(float[] realStart,
float[] imaginaryStart,
int maxIterations) |
GriffinLim(float[] realStart,
float[] imaginaryStart,
int maxIterations,
float maxDistance) |
| Modifier and Type | Method and Description |
|---|---|
float[][] |
inverseTransform(float[] real,
float[] imaginary)
Performs an inverse transform.
|
float[][] |
transform(float[] magnitudes)
Transform the given magnitudes to a signal.
|
float[][] |
transform(float[] real,
float[] imaginary)
Performs a complex transform.
|
public GriffinLim(float[] realStart,
float[] imaginaryStart,
int maxIterations)
realStart - first real estimate for the signalimaginaryStart - first imaginary estimate (may be zero-filled array or null)maxIterations - max number of iterations to performpublic GriffinLim(float[] realStart,
float[] imaginaryStart,
int maxIterations,
float maxDistance)
realStart - first real estimate for the signalimaginaryStart - first imaginary estimate (may be zero-filled array or null)maxIterations - max number of iterations to performmaxDistance - stop, if the distance (sum of squared differences)
to the previous magnitude spectrum is less than this value.public float[][] transform(float[] magnitudes)
throws UnsupportedOperationException
transform in interface Transformmagnitudes - magnitudes (must not be symmetric)UnsupportedOperationExceptionpublic float[][] inverseTransform(float[] real,
float[] imaginary)
throws UnsupportedOperationException
TransforminverseTransform in interface Transformreal - input array of floatsimaginary - input array of floatsUnsupportedOperationException - should the implementation not support this operationpublic float[][] transform(float[] real,
float[] imaginary)
throws UnsupportedOperationException
Transformtransform in interface Transformreal - input array of floatsimaginary - input array of floatsUnsupportedOperationException - should the implementation not support this operationCopyright © 2011–2020 tagtraum industries incorporated. All rights reserved.