public static class MultirateFilters.Interpolator extends Object implements StatefulMapFunction<float[]>
Filters.FIRFilter.
This class combines upsampling (i.e. zero stuffing) and filtering (to avoid aliasing).| Constructor and Description |
|---|
Interpolator(double[] coefficients,
int factor)
Creates an interpolator with the given FIR coefficients for filtering after upsampling to avoid aliasing.
|
Interpolator(Filters.FIRFilter filter,
int factor)
Creates an interpolator with the given FIR filter for filtering after upsampling to avoid aliasing.
|
Interpolator(int factor)
Creates an interpolator using a simple fir1 16th order low pass filter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getFactor()
Get upsample factor.
|
int |
hashCode() |
float[] |
map(float[] data)
Maps an object (usually an array, an
RealAudioBuffer
or a List) to another one of the same size. |
void |
reset()
Resets the function's state.
|
String |
toString() |
public Interpolator(int factor)
factor - upsample factorIllegalArgumentException - if the upsample factor is not supportedFilters.createFir1_16thOrderLowpass(int)public Interpolator(double[] coefficients,
int factor)
coefficients - FIR filter coefficientsfactor - upsample factorpublic Interpolator(Filters.FIRFilter filter, int factor)
filter - FIR filterfactor - upsample factorpublic void reset()
StatefulMapFunctionreset in interface StatefulMapFunction<float[]>public int getFactor()
public float[] map(float[] data)
MapFunctionRealAudioBuffer
or a List) to another one of the same size.map in interface MapFunction<float[]>data - dataCopyright © 2011–2020 tagtraum industries incorporated. All rights reserved.