Interface SharedVariableArray2D<DomainType>
Interface for flat 2D shared variable arrays
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Models
Assembly: Microsoft.ML.Probabilistic.Compiler.dll
Syntax
public interface SharedVariableArray2D<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
VariableArray2D<DomainType> GetCopyFor(Model model)
Parameters
| Type | Name | Description |
|---|---|---|
| Model | model | The model id |
Returns
| Type | Description |
|---|---|
| VariableArray2D<DomainType> |
Marginal<DistributionType>()
Gets the marginal
Declaration
DistributionType Marginal<DistributionType>()
Returns
| Type | Description |
|---|---|
| DistributionType |
Type Parameters
| Name | Description |
|---|---|
| DistributionType | The returned distribution array type |
Named(String)
Inline method to name shared variable arrays
Declaration
SharedVariableArray2D<DomainType> Named(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| String | name |
Returns
| Type | Description |
|---|---|
| SharedVariableArray2D<DomainType> |
SetDefinitionTo(Model, VariableArray2D<DomainType>)
Sets a copy of the shared variable to a definition
Declaration
void SetDefinitionTo(Model model, VariableArray2D<DomainType> definition)
Parameters
| Type | Name | Description |
|---|---|---|
| Model | model | Model id |
| VariableArray2D<DomainType> | definition | Defining variable |