Click or drag to resize
VariableArrayTItem, TArray Class
Microsoft Research
One-dimensional jagged variable array.
Inheritance Hierarchy
SystemObject
  MicrosoftResearch.Infer.ModelsVariable
    MicrosoftResearch.Infer.ModelsVariableTArray
      VariableArrayBaseTItem, TArray
        MicrosoftResearch.Infer.ModelsVariableArrayTItem, TArray
          MicrosoftResearch.Infer.ModelsVariableArrayT

Namespace: MicrosoftResearch.Infer.Models
Assembly: Infer.Compiler (in Infer.Compiler.dll) Version: 2.6.41128.1 (2.6.41128.1)
Syntax
public class VariableArray<TItem, TArray> : VariableArrayBase<TItem, TArray>, 
	SettableTo<VariableArray<TItem, TArray>>, IVariableArray, IVariable, 
	IModelExpression, HasObservedValue
where TItem : Variable, ICloneable, SettableTo<TItem>

Type Parameters

TItem
Item type
TArray
Array type

The VariableArrayTItem, TArray type exposes the following members.

Methods
  NameDescription
Public methodAttrib(ICompilerAttribute)
Inline method for adding an attribute to a random variable. This method returns the random variable object, so that is can be used in an inline expression. e.g. Variable.GaussianFromMeanAndVariance(0,1).Attrib(new MyAttribute());
Public methodAttrib(QueryType)
Helper to add a query type attribute to this variable.
Public methodClone
Clone the variable array
(Overrides VariableTClone.)
Public methodNamed
Set the name of the array.
Public methodSetTo
Set the variable array to the given value. Should only be invoked on arrays created using Variable.Array() where the elements have not yet been filled in.
Top
Properties
Explicit Interface Implementations
See Also