Class VariableArray3D<T>
Three-dimensional flat variable array.
Inheritance
Variable<T[,]>
VariableArrayBase<Variable<T>, T[,]>
VariableArray3D<Variable<T>, T[,]>
VariableArray3D<T>
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Models
Assembly: Microsoft.ML.Probabilistic.Compiler.dll
Syntax
public class VariableArray3D<T> : VariableArray3D<Variable<T>, T[, ]>, CanGetContainers, IModelExpression<T[, ]>, SettableTo<Variable<T[, ]>>, ICloneable, HasItemVariables, IVariableJaggedArray, SettableTo<VariableArray3D<Variable<T>, T[, ]>>, IVariableArray3D<T>, IVariableArray, IVariable, IModelExpression, HasObservedValue, SettableTo<VariableArray3D<T>>
Type Parameters
Name | Description |
---|---|
T |
Constructors
VariableArray3D(VariableArray3D<T>)
Copy constructor.
Declaration
protected VariableArray3D(VariableArray3D<T> that)
Parameters
Type | Name | Description |
---|---|---|
VariableArray3D<T> | that |
Methods
Attrib(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());
Declaration
public VariableArray3D<T> Attrib(ICompilerAttribute attr)
Parameters
Type | Name | Description |
---|---|---|
ICompilerAttribute | attr | The attribute to add |
Returns
Type | Description |
---|---|
VariableArray3D<T> | The random variable object |
Clone()
Clone the 3-D array
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
Object |
Overrides
Microsoft.ML.Probabilistic.Models.VariableArray3D<Microsoft.ML.Probabilistic.Models.Variable<T>, T[,]>.Clone()
Named(String)
Set the name of the array.
Declaration
public VariableArray3D<T> Named(string name)
Parameters
Type | Name | Description |
---|---|---|
String | name |
Returns
Type | Description |
---|---|
VariableArray3D<T> |
|
SetTo(VariableArray3D<T>)
Set the 3-D array to a specified value
Declaration
public void SetTo(VariableArray3D<T> that)
Parameters
Type | Name | Description |
---|---|---|
VariableArray3D<T> | that |
Explicit Interface Implementations
IVariableArray3D<T>.Item[IModelExpression, IModelExpression, IModelExpression]
Sets/Gets element in array given by the index expressions
Declaration
Variable<T> IVariableArray3D<T>.this[IModelExpression index0, IModelExpression index1, IModelExpression index2] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
IModelExpression | index0 | First index expression |
IModelExpression | index1 | Second index expression |
IModelExpression | index2 | Third index expression |
Returns
Type | Description |
---|---|
Variable<T> |