Click or drag to resize
VariableObservedT Method (T, Range, Range)
Microsoft Research
Creates a 2D 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 VariableArray2D<T> Observed<T>(
	T[,] observedValue,
	Range r0,
	Range r1
)

Parameters

observedValue
Type: T
The observed value
r0
Type: MicrosoftResearch.Infer.ModelsRange
The range used for the first index
r1
Type: MicrosoftResearch.Infer.ModelsRange
The range used for the second index

Type Parameters

T
The type of the observed array elements.

Return Value

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