Class BeliefPropagationGateExitTwoOp
Provides outgoing messages for ExitTwo<T>(Boolean, Boolean, T[]), given random arguments to the function.
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Factors
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[FactorMethod(typeof(Gate), "ExitTwo<>", new Type[]{})]
[Quality(QualityBand.Stable)]
public static class BeliefPropagationGateExitTwoOp
Remarks
The message operators contained in this class assume that the distribution of the variable exiting the gate can represent mixtures exactly.
Methods
ExitTwoAverageConditional<TDist>(TDist, Bernoulli, Bernoulli, IList<TDist>, TDist)
EP message to exitTwo.
Declaration
public static TDist ExitTwoAverageConditional<TDist>(TDist exitTwo, Bernoulli case0, Bernoulli case1, [SkipIfAllUniform] IList<TDist> values, TDist result)
where TDist : SettableTo<TDist>, SettableToWeightedSum<TDist>, CanGetLogAverageOf<TDist>
Parameters
| Type | Name | Description |
|---|---|---|
| TDist | exitTwo | Incoming message from |
| Bernoulli | case0 | Incoming message from |
| Bernoulli | case1 | Incoming message from |
| IList<TDist> | values | Incoming message from |
| 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 exiting the gate. |
Remarks
The outgoing message is a distribution matching the moments of exitTwo as the random arguments are varied. The formula is proj[p(exitTwo) sum_(case0,case1,values) p(case0,case1,values) factor(exitTwo,case0,case1,values)]/p(exitTwo).
Exceptions
| Type | Condition |
|---|---|
| ImproperMessageException |
|