C# Class MCAEmotiv.Classification.Example

Show file Open project: madelson/Emotiv-Experimenter Class Usage Examples

Public Methods

Method Description
Example ( int cls, IEnumerable features ) : System

Construct an example with the specified class and feature data. Makes a copy of features. To preserve immutability.

WithClass ( int cls ) : Example

Efficiently returns an identical example except with the new class value.

WithFeatures ( IArrayView featureIndices ) : Example

Efficiently returns an identical example except with only the features at the indices specified by the argument. No copying of features is performed.

ZScored ( IArrayView means, IArrayView standardDeviations ) : Example

Efficiently returns an identical example with features that have been z-scored using means and standardDeviations.

Private Methods

Method Description
Example ( int cls, IArrayView features ) : System
ZScored ( IArrayView examples, IArrayView &means, IArrayView &standardDeviations ) : IArrayView

Zscores the examples, returning the calculated means and standard deviations as out parameters.

Method Details

Example() public method

Construct an example with the specified class and feature data. Makes a copy of features. To preserve immutability.
public Example ( int cls, IEnumerable features ) : System
cls int
features IEnumerable
return System

WithClass() public method

Efficiently returns an identical example except with the new class value.
public WithClass ( int cls ) : Example
cls int
return Example

WithFeatures() public method

Efficiently returns an identical example except with only the features at the indices specified by the argument. No copying of features is performed.
public WithFeatures ( IArrayView featureIndices ) : Example
featureIndices IArrayView
return Example

ZScored() public method

Efficiently returns an identical example with features that have been z-scored using means and standardDeviations.
public ZScored ( IArrayView means, IArrayView standardDeviations ) : Example
means IArrayView
standardDeviations IArrayView
return Example