Infer.NET Documentation
SharedVariable<(Of <(DomainType>)>) Class
Infer.NET code documentationMicrosoftResearch.Infer.ModelsSharedVariable<(Of <(DomainType>)>)
Microsoft Research, Cambridge
Abstract base class for shared variables
Declaration Syntax
C#Visual BasicVisual C++
public abstract class SharedVariable<DomainType> : ISharedVariable
Public MustInherit Class SharedVariable(Of DomainType) _
	Implements ISharedVariable
generic<typename DomainType>
public ref class SharedVariable abstract : ISharedVariable
Generic Template Parameters
DomainType
Members
All MembersMethodsFields



IconMemberDescription
GetCopyFor(Model)
Gets a copy of the variable for the specified model

InferOutput(InferenceEngine, Model, Int32)
Infer the shared variable's output message for the given model and batch number

InferOutput(CompiledAlgorithm, Model, Int32)
Infer the shared variable's output message for the given model and batch number

Marginal<(Of <(DistributionType>)>)()()()
Gets the marginal distribution

Name
Name of the shared variable

Named(String)
Inline method for naming a shared variable

Random<(Of <(DistributionType>)>)(DistributionType)
Creates a shared random variable with the specified prior distribution.

Random<(Of <(DistributionArrayType>)>)(Range, DistributionArrayType)
Creates a 1D array of shared random variables of size given by the specified range.

Random<(Of <(DistributionArrayType>)>)(VariableArray<(Of <(DomainType>)>), Range, DistributionArrayType)
Creates a 1D jagged array of shared random variables.

Random<(Of <(ItemType, ArrayType, DistributionArrayType>)>)(ItemType, Range, DistributionArrayType)
Creates a generic jagged array of shared random variables.

SetInput(Model, Int32)
Sets the shared variable's inbox for a given model and batch

Inheritance Hierarchy
Object
SharedVariable<(Of <(DomainType>)>)

Assembly: Infer.Compiler (Module: Infer.Compiler) Version: 2.3.41111.0 (2.3.41111.0)