public abstract class RawSignalAggregator
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.concurrent.ArrayBlockingQueue<double[]> |
queue
The queue.
|
| Modifier | Constructor and Description |
|---|---|
protected |
RawSignalAggregator(int sampleRate)
Instantiates a new raw signal aggregator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSample(double... sample)
Adds the sample.
|
void |
clear()
Clear.
|
double[][] |
getCurrentSecondOfSampledData()
Returns a snapshot of ~ sampleRate samples, each of length fftSize
representing the current seconds' raw signal sampled.
|
double[][] |
getCurrentSecondOfSampledData(int numSamples)
Returns the requested number of samples from the current one seconds' worth
of samples (~
sampleRate), evenly spaced over the size of the
samples. |
protected RawSignalAggregator(int sampleRate)
sampleRate - the sample ratepublic void addSample(double... sample)
sample - the samplepublic void clear()
public double[][] getCurrentSecondOfSampledData()
EspSignalUtilitiespublic double[][] getCurrentSecondOfSampledData(int numSamples)
sampleRate), evenly spaced over the size of the
samples.numSamples - a fraction of the sampleRate current seconds' samples, >
0 && < sampleRate ie. 50, 25, 10EspSignalUtilities