Sets soft evidence for a particular discrete variable.

Namespace:  BayesServer.Inference
Assembly:  BayesServer.Inference (in BayesServer.Inference.dll)
Version: 2.2.0.0 (2.2.0.0)

Syntax

C#
void SetStates(
	Variable variable,
	double[] values
)
Visual Basic (Declaration)
Sub SetStates ( _
	variable As Variable, _
	values As Double() _
)
Visual C++
void SetStates(
	Variable^ variable, 
	array<double>^ values
)

Parameters

variable
Type: BayesServer..::.Variable
The variable to set evidence on.
values
Type: array< System..::.Double >[]()[]
An array of soft evidence values.

Remarks

If the evidence values are not actual soft evidence (e.g. {1, 0, 0} or {1, 1, 1} then the evidence will be stored correctly but the EvidenceType will not be Soft.

See Also