Click or drag to resize
VariableObservedT Method (T, 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<T>, T[][]> Observed<T>(
	T[][] observedValue,
	Range r1,
	Range r2
)

Parameters

observedValue
Type: T
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: VariableArrayVariableArrayT, T
A new variable
Remarks
The variable is not constant; its ObservedValue can be changed.
See Also