C# Class MCAEmotiv.Interop.EEGDataEntry

Mostrar archivo Open project: madelson/Emotiv-Experimenter Class Usage Examples

Public Properties

Property Type Description
NUM_LINE_FIELDS int

Public Methods

Method Description
EEGDataEntry ( int marker, int timeStamp, int relativeTimeStamp, IEnumerable channelData ) : System

Constructs an EEGDataEntry. A copy of channelData is created.

Equals ( object obj ) : bool

Checks all fields to determine equality

FromFile ( string path ) : IEnumerable

Attempts to use Parse/ParseOldFormat to extract the entries in the file

GetHashCode ( ) : int

Returns a hashcode for this entry

Parse ( string line ) : EEGDataEntry

Parses a line of text as an EEGDataEntry. The line should have been created with ToString

ParseOldFormat ( string line, int onsetTime ) : EEGDataEntry

Parses a line of text based on a format that is essentially the raw output of the emotiv headset

ToString ( ) : string

A CSV string representation which can be parsed by Parse.

WithMarker ( int marker ) : EEGDataEntry

Create an identical entry except for the marker field. Re-uses the channel data

this ( Channel channel ) : double

Provides explicit channel-based access to data

Private Methods

Method Description
EEGDataEntry ( int marker, int timeStamp, int relativeTimeStamp, IArrayView channelData ) : System

Method Details

EEGDataEntry() public method

Constructs an EEGDataEntry. A copy of channelData is created.
public EEGDataEntry ( int marker, int timeStamp, int relativeTimeStamp, IEnumerable channelData ) : System
marker int
timeStamp int
relativeTimeStamp int
channelData IEnumerable
return System

Equals() public method

Checks all fields to determine equality
public Equals ( object obj ) : bool
obj object
return bool

FromFile() public static method

Attempts to use Parse/ParseOldFormat to extract the entries in the file
public static FromFile ( string path ) : IEnumerable
path string
return IEnumerable

GetHashCode() public method

Returns a hashcode for this entry
public GetHashCode ( ) : int
return int

Parse() public static method

Parses a line of text as an EEGDataEntry. The line should have been created with ToString
public static Parse ( string line ) : EEGDataEntry
line string
return EEGDataEntry

ParseOldFormat() public static method

Parses a line of text based on a format that is essentially the raw output of the emotiv headset
public static ParseOldFormat ( string line, int onsetTime ) : EEGDataEntry
line string
onsetTime int
return EEGDataEntry

ToString() public method

A CSV string representation which can be parsed by Parse.
public ToString ( ) : string
return string

WithMarker() public method

Create an identical entry except for the marker field. Re-uses the channel data
public WithMarker ( int marker ) : EEGDataEntry
marker int
return EEGDataEntry

this() public method

Provides explicit channel-based access to data
public this ( Channel channel ) : double
channel Channel
return double

Property Details

NUM_LINE_FIELDS public_oe static_oe property

The number of fields in an entry's ToString output
public static int NUM_LINE_FIELDS
return int