Interface ISharedVariableArray<ItemType, ArrayType>
Interface for jagged 1D shared variable arrays
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Models
Assembly: Microsoft.ML.Probabilistic.Compiler.dll
Syntax
public interface ISharedVariableArray<ItemType, ArrayType> : ISharedVariable where ItemType : Variable, ICloneable, SettableTo<ItemType>
Type Parameters
| Name | Description |
|---|---|
| ItemType | Variable type of an item |
| ArrayType | Domain type of the array |
Methods
GetCopyFor(Model)
Get a copy of the variable array for the specified model
Declaration
VariableArray<ItemType, ArrayType> GetCopyFor(Model model)
Parameters
| Type | Name | Description |
|---|---|---|
| Model | model | The model id |
Returns
| Type | Description |
|---|---|
| VariableArray<ItemType, ArrayType> |
Marginal<T>()
Get the marginal, converted to type T
Declaration
T Marginal<T>()
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T | The desired type |
Named(String)
Inline method to name shared variable arrays
Declaration
ISharedVariableArray<ItemType, ArrayType> Named(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| String | name |
Returns
| Type | Description |
|---|---|
| ISharedVariableArray<ItemType, ArrayType> |
SetDefinitionTo(Model, VariableArray<ItemType, ArrayType>)
Sets the definition of the shared variable
Declaration
void SetDefinitionTo(Model model, VariableArray<ItemType, ArrayType> definition)
Parameters
| Type | Name | Description |
|---|---|---|
| Model | model | Model id |
| VariableArray<ItemType, ArrayType> | definition | Defining variable |