C# Class Recognizer.SerializableHmm

Inheritance: ISerializable
Show file Open project: omanamos/kinect-nao Class Usage Examples

Public Methods

Method Description
GetObjectData ( SerializationInfo info, StreamingContext ctxt ) : void

Specifies the attributes that should be serialized.

LoadFromDisk ( ) : HiddenMarkovModel

Loads and returns a HMM that was previously serialized to disk.

SaveToDisk ( ) : void

Saves this HMM representation to disk.

SerializableHmm ( SerializationInfo info, StreamingContext ctxt ) : System

Deserializes the object.

SerializableHmm ( string name, HiddenMarkovModel hmm ) : System

Saves to this object the information necessary for later reconstructing the given HMM.

SerializableHmm ( string actName, HiddenMarkovModel hmm, Accord pca ) : System
SerializableHmm ( string name, string directory ) : System

Prepares this object for the deserialization of the HMM that was previously serialized with the given name.

Private Methods

Method Description
construct ( HiddenMarkovModel hmm ) : void
getPCA ( ) : Accord.Statistics.Analysis.PrincipalComponentAnalysis

Method Details

GetObjectData() public method

Specifies the attributes that should be serialized.
public GetObjectData ( SerializationInfo info, StreamingContext ctxt ) : void
info System.Runtime.Serialization.SerializationInfo the data necessary to deserialize this object
ctxt System.Runtime.Serialization.StreamingContext specifies the serialization stream
return void

LoadFromDisk() public method

Loads and returns a HMM that was previously serialized to disk.
public LoadFromDisk ( ) : HiddenMarkovModel
return HiddenMarkovModel

SaveToDisk() public method

Saves this HMM representation to disk.
public SaveToDisk ( ) : void
return void

SerializableHmm() public method

Deserializes the object.
public SerializableHmm ( SerializationInfo info, StreamingContext ctxt ) : System
info System.Runtime.Serialization.SerializationInfo the data necessary to deserialize this object
ctxt System.Runtime.Serialization.StreamingContext specifies the serialization stream
return System

SerializableHmm() public method

Saves to this object the information necessary for later reconstructing the given HMM.
public SerializableHmm ( string name, HiddenMarkovModel hmm ) : System
name string the name of this HMM
hmm HiddenMarkovModel the HMM to store
return System

SerializableHmm() public method

public SerializableHmm ( string actName, HiddenMarkovModel hmm, Accord pca ) : System
actName string
hmm HiddenMarkovModel
pca Accord
return System

SerializableHmm() public method

Prepares this object for the deserialization of the HMM that was previously serialized with the given name.
public SerializableHmm ( string name, string directory ) : System
name string the name of this HMM
directory string
return System