ESP OpenBCI - An EEG Signal Processing Library for OpenBCI Hardware

com.github.mrstampy.esp.dsp.lab
Interface RawEspConnection

All Superinterfaces:
MultiConnectionSocket
All Known Implementing Classes:
AbstractRawEspConnection, OpenBCIConnection

public interface RawEspConnection
extends MultiConnectionSocket

Interface defining the encapsulation of a MultiConnectionSocket and associated ESP objects for raw signal processing.

Author:
burton

Method Summary
 double[][] getCurrent()
          Return the current second's worth of samples.
 double[][] getCurrent(int numSamples)
          Return the specified number of the current second's worth of samples.
 double[][] getCurrentFor(int channelNumber)
          Return the current second's worth of samples for the specified channel.
 double[][] getCurrentFor(int numSamples, int channelNumber)
          Return the specified number of the current second's worth of samples for the specified channel.
 Lab getDefaultLab()
          Returns an instance of the default lab implementation for use with this connection.
 AbstractDSPValues getDSPValues()
          Return the DSP values.
 java.lang.String getName()
          Return a name identifier.
 EspSignalUtilities getUtilities()
          Return the utilities.
 EspWindowFunction getWindowFunction()
          Return the window function.
 void setWindowFunction(EspWindowFunction function)
          Set the window function.
 
Methods inherited from interface com.github.mrstampy.esp.multiconnectionsocket.MultiConnectionSocket
addConnectionEventListener, bindBroadcaster, canBroadcast, clearConnectionEventListeners, getChannel, getChannels, getNumChannels, isBound, isConnected, removeConnectionEventListener, start, stop, unbindBroadcaster
 

Method Detail

getUtilities

EspSignalUtilities getUtilities()
Return the utilities.

Returns:
the utilities

getWindowFunction

EspWindowFunction getWindowFunction()
Return the window function.

Returns:
the window function
See Also:
EspSignalUtilities.setWindow(ddf.minim.analysis.WindowFunction)

setWindowFunction

void setWindowFunction(EspWindowFunction function)
Set the window function.

Parameters:
function - the new window function
See Also:
EspSignalUtilities.setWindow(ddf.minim.analysis.WindowFunction)

getDSPValues

AbstractDSPValues getDSPValues()
Return the DSP values.

Returns:
the DSP values

getCurrent

double[][] getCurrent()
Return the current second's worth of samples.

Returns:
the current

getCurrent

double[][] getCurrent(int numSamples)
Return the specified number of the current second's worth of samples.

Parameters:
numSamples - the num samples
Returns:
the current

getCurrentFor

double[][] getCurrentFor(int channelNumber)
Return the current second's worth of samples for the specified channel.

Parameters:
channelNumber - the channel number
Returns:
the current

getCurrentFor

double[][] getCurrentFor(int numSamples,
                         int channelNumber)
Return the specified number of the current second's worth of samples for the specified channel.

Parameters:
numSamples - the num samples
channelNumber - the channel number
Returns:
the current

getName

java.lang.String getName()
Return a name identifier.

Returns:
the name

getDefaultLab

Lab getDefaultLab()
Returns an instance of the default lab implementation for use with this connection.

Returns:

brought to you by Mr. Stampy