Class BeliefPropagationGateEnterOneOp
Provides outgoing messages for EnterOne<T>(Int32, T, Int32), given random arguments to the function.
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Factors
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[FactorMethod(typeof(Gate), "EnterOne<>", new Type[]{null, typeof(int), null, typeof(int)})]
[Quality(QualityBand.Stable)]
public static class BeliefPropagationGateEnterOneOp
Remarks
The message operators contained in this class assume that the distribution of the variable entering the gate can represent mixtures exactly.
Methods
ValueAverageConditional<TDist>(TDist, Discrete, TDist, Int32, TDist)
EP message to value
.
Declaration
public static TDist ValueAverageConditional<TDist>([SkipIfAllUniform] TDist enterOne, Discrete selector, TDist value, int index, TDist result)
where TDist : ICloneable, SettableToUniform, SettableToWeightedSum<TDist>, SettableTo<TDist>, CanGetLogAverageOf<TDist>, CanGetLogNormalizer
Parameters
Type | Name | Description |
---|---|---|
TDist | enterOne | Incoming message from |
Discrete | selector | Incoming message from |
TDist | value | Incoming message from |
Int32 | index | Constant value for |
TDist | result | Modified to contain the outgoing message. |
Returns
Type | Description |
---|---|
TDist |
|
Type Parameters
Name | Description |
---|---|
TDist | The type of the distribution over the variable entering the gate. |
Remarks
The outgoing message is a distribution matching the moments of value
as the random arguments are varied. The formula is proj[p(value) sum_(enterOne,selector) p(enterOne,selector) factor(enterOne,selector,value,index)]/p(value)
.
Exceptions
Type | Condition |
---|---|
ImproperMessageException |
|