Class: HhmmDecoder

HhmmDecoder

Hierarchical HMM decoder
Loads a model trained by the XMM library and processes an input stream of float vectors in real-time. If the model was trained for regression, outputs an estimation of the associated process.

Constructor

new HhmmDecoder(windowSizeopt)

Parameters:
Name Type Attributes Default Description
windowSize Number <optional>
1

Size of the likelihood smoothing window.

Source:

Methods

filter(observation, resultsCallbackopt) → {hhmmResults}

The decoding function.

Parameters:
Name Type Attributes Default Description
observation Array.number

An input float vector to be estimated.

resultsCallback hhmmResultsCallback <optional>
null

The callback handling the estimation results.

Source:
Returns:
Type
hhmmResults

getLikeliestLabel() → {String}

Get the currently estimated likeliest label.

Source:
Returns:
Type
String

getLikelihoodWindow() → {Number}

Get the likelihood smoothing window size.

Source:
Returns:
Type
Number

getModel() → {xmmHhmmModel}

Get the actual XMM Hierarchical HMM model.

Source:
Returns:
Type
xmmHhmmModel

getNumberOfClasses() → {Number}

Get the total number of classes the model was trained with.

Source:
Returns:
Type
Number

getRegressionVectorSize() → {Number}

Get the output dimension of the model (size of a regression vector).

Source:
Returns:
Type
Number

reset()

Resets the intermediate results of the estimation (shortcut for reloading the model).

Source:

setLikelihoodWindow(newWindowSize)

Set the likelihood smoothing window size.

Parameters:
Name Type Description
newWindowSize Number

the new window size.

Source:

setModel(model)

Set the actual XMM Hierarchical HMM model.

Parameters:
Name Type Description
model xmmHhmmModel
Source: