SharpBCI
A multi-threaded brain control interface (BCI) library in C#
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Pages
SharpBCI.BandpassPipeable Class Reference

A pipeable which implements a band-pass filter on all incoming data Input types: EEGEvent Output types: EEGEvent. More...

Inheritance diagram for SharpBCI.BandpassPipeable:
SharpBCI.Pipeable SharpBCI.IPipeable

Public Member Functions

 BandpassPipeable (double sampleRate, int channels, double minFreq, double maxFreq, double transitionBandwidth)
 Create a new BandpassPipeable with the following properties. More...
 
- Public Member Functions inherited from SharpBCI.Pipeable
void SetInput (BlockingCollection< object > newInput)
 Set the input on this IPipeable to param input Should only be used internally by Connect. More...
 
void Connect (IPipeable other)
 Connect the input of other to our output Note: mirror == false using this override. More...
 
void Connect (IPipeable other, bool mirror)
 Connect the input of other to our output and allow for control of mirror data. More...
 
virtual void Start (TaskFactory taskFactory, CancellationTokenSource cts)
 Actually start doing work (i.e., promise to eventually start pushing data to connected pipeables) More...
 
virtual void Stop ()
 Require this IPipeable to stop, blocking until actually stopped. More...
 

Protected Member Functions

override bool Process (object item)
 
- Protected Member Functions inherited from SharpBCI.Pipeable
void Add (object item)
 

Additional Inherited Members

- Public Attributes inherited from SharpBCI.Pipeable
const int DEFAULT_BUFFER_SIZE = 1000
 

Detailed Description

A pipeable which implements a band-pass filter on all incoming data Input types: EEGEvent Output types: EEGEvent.

Constructor & Destructor Documentation

SharpBCI.BandpassPipeable.BandpassPipeable ( double  sampleRate,
int  channels,
double  minFreq,
double  maxFreq,
double  transitionBandwidth 
)

Create a new BandpassPipeable with the following properties.

Parameters
sampleRatethe sampleRate of the underlying adapter
channelsthe number of channels of the underlying adapter
minFreqminimum cut-off frequency for all channels, interpreted as the center of the frequency cutoff
maxFreqmaximum cut-off frequency for all channels, interpreted as the center of the frequenct cutoff
transitionBandwidthsignal attentuation will start at fC - transitionBandwidth/2 and end at fC + transitionBandwidth / 2

Member Function Documentation

override bool SharpBCI.BandpassPipeable.Process ( object  item)
protectedvirtual

Implements SharpBCI.Pipeable.


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