Accord.NET Framework

## HiddenMarkovModelTDistributionPredictTUnivariate Method (Double, Double, MixtureTUnivariate) |

Predicts the next observation occurring after a given observation sequence.

Syntax

public double Predict<TUnivariate>( double[] observations, out double logLikelihood, out Mixture<TUnivariate> probabilities ) where TUnivariate : DistributionBase, TDistribution, IUnivariateDistribution<double>

- observations
- Type: SystemDouble

A sequence of observations. Predictions will be made regarding the next observations that should be coming after the last observation in this sequence. - logLikelihood
- Type: SystemDouble

The log-likelihood of the given sequence, plus the predicted next observation. Exponentiate this value (use the System.Math.Exp function) to obtain a likelihood value. - probabilities
- Type: Accord.Statistics.Distributions.UnivariateMixtureTUnivariate

The continuous probability distribution describing the next observations that are likely to be generated. Taking the mode of this distribution might give the most likely next value in the observed sequence.

- TUnivariate

See Also