public class MedianFilter extends SampleBuffer
actualSize, bufferSize, currentPos, sampleBuffer
sampleSize, source
Constructor and Description |
---|
MedianFilter(SampleProvider source,
int bufferSize) |
Modifier and Type | Method and Description |
---|---|
void |
fetchSample(float[] sample,
int off)
Fetches a sample from a sensors or filter.
|
getActualSize, getBufferSize, getOldest, toPos
sampleSize
public MedianFilter(SampleProvider source, int bufferSize)
public void fetchSample(float[] sample, int off)
SampleProvider
fetchSample
in interface SampleProvider
fetchSample
in class SampleBuffer
sample
- The array to store the sample in.off
- The elements of the sample are stored in the array starting at the offset position.