C# Class MCAEmotiv.Classification.Example

Afficher le fichier Open project: madelson/Emotiv-Experimenter Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat System

WithClass() public méthode

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

WithFeatures() public méthode

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
Résultat Example

ZScored() public méthode

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
Résultat Example