Class IsPositiveOp_Proper
Provides outgoing messages for IsPositive(Double), given random arguments to the function.
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Factors
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[FactorMethod(typeof(Factor), "IsPositive", new Type[]{typeof(double)}, Default = true)]
[Quality(QualityBand.Mature)]
public static class IsPositiveOp_Proper
Methods
XAverageConditional(Bernoulli, Gaussian)
EP message to x.
Declaration
public static Gaussian XAverageConditional(Bernoulli isPositive, Gaussian x)
Parameters
| Type | Name | Description |
|---|---|---|
| Bernoulli | isPositive | Incoming message from |
| Gaussian | x | Incoming message from |
Returns
| Type | Description |
|---|---|
| Gaussian | The outgoing EP message to the |
Remarks
The outgoing message is a distribution matching the moments of x as the random arguments are varied. The formula is proj[p(x) sum_(isPositive) p(isPositive) factor(isPositive,x)]/p(x).
Exceptions
| Type | Condition |
|---|---|
| ImproperMessageException |
|
| ImproperMessageException |
|