Click or drag to resize
Accord.NET (logo)

FactorPotentialTCompute Method (Int32, T, Int32)

Computes the factor potential function for the given parameters.

Namespace:  Accord.Statistics.Models.Fields.Functions
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public double Compute(
	int[] states,
	T[] observations,
	int output = 0
)
Request Example View Source

Parameters

states
Type: SystemInt32
A state sequence.
observations
Type: T
A sequence of observations.
output (Optional)
Type: SystemInt32
The output class label for the sequence.

Return Value

Type: Double
The value of the factor potential function evaluated for the given parameters.
See Also