
public class SliceFilter extends AbstractFilter
| Modifier and Type | Field and Description |
|---|---|
private int |
firstIndex |
private int |
lastIndex |
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 sensors or filter.
|
int |
sampleSize()
Returns the number of elements in a sample.
|
public SliceFilter(SampleProvider source, int firstIndex, int lastIndex)
public int sampleSize()
SampleProvidersampleSize in interface SampleProvidersampleSize in class AbstractFilterpublic void fetchSample(float[] sample,
int offset)
SampleProviderfetchSample in interface SampleProviderfetchSample in class AbstractFiltersample - The array to store the sample in.offset - The elements of the sample are stored in the array starting at the offset position.