Click or drag to resize
VariableObservedT Method (IListIListT, Range, Range)
Microsoft Research
Creates a jagged 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<VariableArray<Variable<T>, IList<T>>, IList<IList<T>>> Observed<T>(
	IList<IList<T>> observedValue,
	Range r1,
	Range r2
)

Parameters

observedValue
Type: System.Collections.GenericIListIListT
The observed value.
r1
Type: MicrosoftResearch.Infer.ModelsRange
The range used for the first index.
r2
Type: MicrosoftResearch.Infer.ModelsRange
The range used for the second index.

Type Parameters

T
The type of the observed array elements.

Return Value

Type: VariableArrayVariableArrayVariableT, IListT, IListIListT
A new variable.
Remarks
The variable is not constant; its ObservedValue can be changed.
See Also