Click or drag to resize
VariableObservedT Method (T, Range)
Microsoft Research
Creates a variable array and observes it.

Namespace: MicrosoftResearch.Infer.Models
Assembly: Infer.Compiler (in Infer.Compiler.dll) Version: 2.6.41128.1 (2.6.41128.1)
Syntax
public static VariableArray<T> Observed<T>(
	T[] observedValue,
	Range r
)

Parameters

observedValue
Type: T
The observed value
r
Type: MicrosoftResearch.Infer.ModelsRange
The range used to index the array

Type Parameters

T
The type of the observed array elements.

Return Value

Type: VariableArrayT
A new variable
Remarks
The variable is not constant; its ObservedValue can be changed.
See Also