Public Member Functions | Public Attributes

hsd.HarmonicSumDecision Class Reference

Inheritance diagram for hsd.HarmonicSumDecision:
unlock.bci.decode.decode.UnlockDecoder

List of all members.

Public Member Functions

def __init__
def fft_params
def classify

Public Attributes

 targets
 target_window
 fs
 electrodes
 n_samples
 overflow
 buffer
 cursor
 TODO: roll any leftover samples to the beginning of the buffer.
 filters
 enabled
 nfft
 window
 nHarmonics
 harmonics

Detailed Description

Harmonic Sum Decision (HSD) computes the frequency power spectrum of EEG
data over one or more electrodes then sums the amplitudes of target
frequencies and their harmonics. The target with the highest sum is chosen
as the attended frequency.

Member Function Documentation

def hsd.HarmonicSumDecision.__init__ (   self,
  task_state = None,
  targets = (12.0, 13.0,
  duration = 3,
  fs = 500,
  electrodes = 8,
  filters = None 
)
def hsd.HarmonicSumDecision.classify (   self,
  command 
)
command contains a data matrix of samples assumed to be an ndarray of
 shape (samples, electrodes+)
def hsd.HarmonicSumDecision.fft_params (   self  ) 
Determine all the relevant parameters for fft analysis

Member Data Documentation

TODO: roll any leftover samples to the beginning of the buffer.


The documentation for this class was generated from the following file: