public class ConcatenationFilter extends java.lang.Object implements SampleProvider
Modifier and Type | Field and Description |
---|---|
private SampleProvider |
source1 |
private SampleProvider |
source2 |
Constructor and Description |
---|
ConcatenationFilter(SampleProvider source1,
SampleProvider source2) |
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.
The number of elements does not change during runtime. |
private SampleProvider source1
private SampleProvider source2
public ConcatenationFilter(SampleProvider source1, SampleProvider source2)
public int sampleSize()
SampleProvider
sampleSize
in interface SampleProvider
public void fetchSample(float[] sample, int offset)
SampleProvider
fetchSample
in interface SampleProvider
sample
- The array to store the sample in.offset
- The elements of the sample are stored in the array starting at the offset position.