C# Class MCAEmotiv.Interop.EEGDataEntryExtensions

Extension methods for EEGDataEntry and collections of entries
显示文件 Open project: madelson/Emotiv-Experimenter

Public Methods

Method Description
AverageEntry ( this entries ) : EEGDataEntry

Averages a collection of entries together

BinByTime ( this entries, int binWidthMillis ) : IArrayView>

Groups the entries by their respective time bins

Channel ( this entries, Channel channel ) : IEnumerable

Returns each entry's voltage value at the desired channel

Channel ( this entries, int channel ) : IEnumerable

Returns each entry's voltage value at the desired channel index

Channels ( this entries ) : IEnumerable>

Returns the channel time series represented by the series of entries

DownSample ( this entries, int binWidthMillis ) : IArrayView

Averages adjacent entries such that the result has only one entry per time bin of the specified width

HasStimulusMarker ( this entry ) : bool

Was a stimulus showing when this entry was recorded?

SectionByStimulus ( this entries ) : IEnumerable>

Groups entries using the sequences formed by their relative timestamps

Method Details

AverageEntry() public static method

Averages a collection of entries together
public static AverageEntry ( this entries ) : EEGDataEntry
entries this
return EEGDataEntry

BinByTime() public static method

Groups the entries by their respective time bins
public static BinByTime ( this entries, int binWidthMillis ) : IArrayView>
entries this
binWidthMillis int
return IArrayView>

Channel() public static method

Returns each entry's voltage value at the desired channel
public static Channel ( this entries, Channel channel ) : IEnumerable
entries this
channel Channel
return IEnumerable

Channel() public static method

Returns each entry's voltage value at the desired channel index
public static Channel ( this entries, int channel ) : IEnumerable
entries this
channel int
return IEnumerable

Channels() public static method

Returns the channel time series represented by the series of entries
public static Channels ( this entries ) : IEnumerable>
entries this
return IEnumerable>

DownSample() public static method

Averages adjacent entries such that the result has only one entry per time bin of the specified width
public static DownSample ( this entries, int binWidthMillis ) : IArrayView
entries this
binWidthMillis int
return IArrayView

HasStimulusMarker() public static method

Was a stimulus showing when this entry was recorded?
public static HasStimulusMarker ( this entry ) : bool
entry this
return bool

SectionByStimulus() public static method

Groups entries using the sequences formed by their relative timestamps
public static SectionByStimulus ( this entries ) : IEnumerable>
entries this
return IEnumerable>