|
ESP OpenBCI - An EEG Signal Processing Library for OpenBCI Hardware | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.github.mrstampy.esp.dsp.RawSignalAggregator
public abstract class RawSignalAggregator
Abstract superclass for aggregating raw signal arrays (ultimately for FFT'ing).
| Field Summary | |
|---|---|
protected java.util.concurrent.ArrayBlockingQueue<double[]> |
queue
The queue. |
| Constructor Summary | |
|---|---|
protected |
RawSignalAggregator(int sampleRate)
Instantiates a new raw signal aggregator. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.concurrent.ArrayBlockingQueue<double[]> queue
| Constructor Detail |
|---|
protected RawSignalAggregator(int sampleRate)
sampleRate - the sample rate| Method Detail |
|---|
public 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, 10
EspSignalUtilities
|
brought to you by Mr. Stampy | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||