public abstract class FIRFilter extends FixedSizeSampleAudioProcessor
Constructor and Description |
---|
FIRFilter(AudioStream stream) |
Modifier and Type | Method and Description |
---|---|
abstract double[] |
getCoefficients()
Returns the coefficients for the particular filter
|
SampleChunk |
process(SampleChunk sample)
Function that takes a sample chunk and processes the chunk.
|
getWindowSize, getWindowStep, isOverlapping, nextSampleChunk, setWindowSize, setWindowStep
getLength, getUnderlyingStream, process, processingComplete, reset, setUnderlyingStream
iterator, seek
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public FIRFilter(AudioStream stream)
stream
- public abstract double[] getCoefficients()
public SampleChunk process(SampleChunk sample) throws Exception
FixedSizeSampleAudioProcessor
is
simply to change the shape of the sample chunk. You may override this
method to process the samples directly.process
in class FixedSizeSampleAudioProcessor
sample
- The sample chunk to process.Exception
- If the processing could not take placeFixedSizeSampleAudioProcessor.process(org.openimaj.audio.SampleChunk)