public static class Filters.FIRFilter extends Object implements StatefulMapFunction<float[]>
FIR (finite impulse response) filter.
To compute the coefficients you might want to use Matlab or the free package Octave (with additional Octave-Forge packages needed for signals). E.g. for a low pass filter you could execute:
Filters.IIRFilter
Modifier and Type | Field and Description |
---|---|
static Filters.FIRFilter |
NOOP
Efficient no-op FIR filter.
|
Constructor and Description |
---|
FIRFilter() |
FIRFilter(double[] coefficients) |
Modifier and Type | Method and Description |
---|---|
protected void |
addToDelayLine(double sample) |
boolean |
equals(Object o) |
protected double |
filter() |
double[] |
getCoefficients() |
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 static Filters.FIRFilter NOOP
public double[] getCoefficients()
public void reset()
StatefulMapFunction
reset
in interface StatefulMapFunction<float[]>
public float[] map(float[] data)
MapFunction
RealAudioBuffer
or a List
) to another one of the same size.map
in interface MapFunction<float[]>
data
- dataprotected void addToDelayLine(double sample)
protected double filter()
Copyright © 2011–2020 tagtraum industries incorporated. All rights reserved.