Interface SharedVariableArray<DomainType>
Interface for flat 1D shared variable arrays
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Models
Assembly: Microsoft.ML.Probabilistic.Compiler.dll
Syntax
public interface SharedVariableArray<DomainType> : ISharedVariable
Type Parameters
Name | Description |
---|---|
DomainType | Domain type of the variable |
Methods
GetCopyFor(Model)
Get a copy of the variable array for the specified model
Declaration
VariableArray<DomainType> GetCopyFor(Model model)
Parameters
Type | Name | Description |
---|---|---|
Model | model | The model id |
Returns
Type | Description |
---|---|
VariableArray<DomainType> |
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
SharedVariableArray<DomainType> Named(string name)
Parameters
Type | Name | Description |
---|---|---|
String | name |
Returns
Type | Description |
---|---|
SharedVariableArray<DomainType> |
SetDefinitionTo(Model, VariableArray<DomainType>)
Sets the definition of the shared variable
Declaration
void SetDefinitionTo(Model model, VariableArray<DomainType> definition)
Parameters
Type | Name | Description |
---|---|---|
Model | model | The model id |
VariableArray<DomainType> | definition | Defining variable |