public class SliceFilter extends AbstractFilter
sampleSize, source
Constructor and Description |
---|
SliceFilter(SampleProvider source,
int firstIndex,
int lastIndex) |
Modifier and Type | Method and Description |
---|---|
void |
fetchSample(float[] sample,
int offset)
Fetches a sample from a sensor or filter.
|
int |
sampleSize()
Returns the number of elements in a sample.
The number of elements does not change during runtime. |
public SliceFilter(SampleProvider source, int firstIndex, int lastIndex)
public int sampleSize()
SampleProvider
sampleSize
in interface SampleProvider
sampleSize
in class AbstractFilter
public void fetchSample(float[] sample, int offset)
SampleProvider
fetchSample
in interface SampleProvider
fetchSample
in class AbstractFilter
sample
- The array to store the sample in.offset
- The elements of the sample are stored in the array starting at the offset position.