kohonenSOMForecast

Calculates forecasts using a trained Kohonen network.

Synopsis

kohonenSOMForecast (kohonen, data)

Required Arguments

Imsls_d_kohonenSOM kohonen (Input)
A Imsls_d_kohonenSOM containing the trained Kohonen network. See the Remarks section of kohonenSOMTrainer for a description of this structure.
float data[[]] (Input)
An nObs × dim array containing the input data for forecasts, where dim is the number of weights for each node in the node grid specified during training.

Return Value

An nObs × 2 array containing the (i, j) index of the winning nodes for the input data.

Description

Function kohonenSOMForecast calculates forecasts for a previously trained Kohonen network from kohonenSOMTrainer. The structure Imsls_d_kohonenSOM describes the network structure used to originally train the network. The weights, which are the key output from training, are used as input to this function. The weights are stored in the Imsls_d_kohonenSOM structure.

Example

See kohonenSOMTrainer.