|
MarkovNormalFactorCompute Method (Int32, Int32, Double, Int32, Int32)
|
Computes the factor potential function for the given parameters.
Namespace:
Accord.Statistics.Models.Fields.Functions.Specialized
Assembly:
Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntaxpublic override double Compute(
int previousState,
int currentState,
double[] observations,
int index,
int outputClass = 0
)
Public Overrides Function Compute (
previousState As Integer,
currentState As Integer,
observations As Double(),
index As Integer,
Optional outputClass As Integer = 0
) As Double
Request Example
View SourceParameters
- previousState
- Type: SystemInt32
The previous state in a given sequence of states. - currentState
- Type: SystemInt32
The current state in a given sequence of states. - observations
- Type: SystemDouble
The observation vector. - index
- Type: SystemInt32
The index of the observation in the current state of the sequence. - outputClass (Optional)
- Type: SystemInt32
The output class label for the sequence.
Return Value
Type:
DoubleThe value of the factor potential function evaluated for the given parameters.
See Also