Class GaussianRatioEvidenceOp
Provides outgoing messages for Ratio(Double, Double), given random arguments to the function.
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Factors
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[FactorMethod(typeof(Factor), "Ratio", new Type[]{typeof(double), typeof(double)})]
[Quality(QualityBand.Mature)]
public static class GaussianRatioEvidenceOp
Methods
LogAverageFactor(Gaussian, Gaussian, Double, Gaussian)
Evidence message for EP.
Declaration
public static double LogAverageFactor(Gaussian ratio, Gaussian a, double b, Gaussian to_ratio)
Parameters
Type | Name | Description |
---|---|---|
Gaussian | ratio | Incoming message from |
Gaussian | a | Incoming message from |
Double | b | Constant value for |
Gaussian | to_ratio | Outgoing message to |
Returns
Type | Description |
---|---|
Double | Logarithm of the factor's average value across the given argument distributions. |
Remarks
The formula for the result is log(sum_(ratio,a) p(ratio,a) factor(ratio,a,b))
.
LogAverageFactor(Gaussian, Double, Gaussian, Gaussian)
Evidence message for EP.
Declaration
public static double LogAverageFactor(Gaussian ratio, double a, Gaussian b, Gaussian to_ratio)
Parameters
Type | Name | Description |
---|---|---|
Gaussian | ratio | Incoming message from |
Double | a | Constant value for |
Gaussian | b | Incoming message from |
Gaussian | to_ratio | Outgoing message to |
Returns
Type | Description |
---|---|
Double | Logarithm of the factor's average value across the given argument distributions. |
Remarks
The formula for the result is log(sum_(ratio,b) p(ratio,b) factor(ratio,a,b))
.
LogAverageFactor(Gaussian, Double, Double)
Evidence message for EP.
Declaration
public static double LogAverageFactor(Gaussian ratio, double a, double b)
Parameters
Type | Name | Description |
---|---|---|
Gaussian | ratio | Incoming message from |
Double | a | Constant value for |
Double | b | Constant value for |
Returns
Type | Description |
---|---|
Double | Logarithm of the factor's average value across the given argument distributions. |
Remarks
The formula for the result is log(sum_(ratio) p(ratio) factor(ratio,a,b))
.
LogAverageFactor(Double, Gaussian, Double)
Evidence message for EP.
Declaration
public static double LogAverageFactor(double ratio, Gaussian a, double b)
Parameters
Type | Name | Description |
---|---|---|
Double | ratio | Constant value for |
Gaussian | a | Incoming message from |
Double | b | Constant value for |
Returns
Type | Description |
---|---|
Double | Logarithm of the factor's average value across the given argument distributions. |
Remarks
The formula for the result is log(sum_(a) p(a) factor(ratio,a,b))
.
LogAverageFactor(Double, Double, Gaussian)
Evidence message for EP.
Declaration
public static double LogAverageFactor(double ratio, double a, Gaussian b)
Parameters
Type | Name | Description |
---|---|---|
Double | ratio | Constant value for |
Double | a | Constant value for |
Gaussian | b | Incoming message from |
Returns
Type | Description |
---|---|
Double | Logarithm of the factor's average value across the given argument distributions. |
Remarks
The formula for the result is log(sum_(b) p(b) factor(ratio,a,b))
.
LogAverageFactor(Double, Double, Double)
Evidence message for EP.
Declaration
public static double LogAverageFactor(double ratio, double a, double b)
Parameters
Type | Name | Description |
---|---|---|
Double | ratio | Constant value for |
Double | a | Constant value for |
Double | b | Constant value for |
Returns
Type | Description |
---|---|
Double | Logarithm of the factor's average value across the given argument distributions. |
Remarks
The formula for the result is log(factor(ratio,a,b))
.
LogEvidenceRatio(Gaussian, Gaussian, Double)
Evidence message for EP.
Declaration
public static double LogEvidenceRatio(Gaussian ratio, Gaussian a, double b)
Parameters
Type | Name | Description |
---|---|---|
Gaussian | ratio | Incoming message from |
Gaussian | a | Incoming message from |
Double | b | Constant value for |
Returns
Type | Description |
---|---|
Double | Logarithm of the factor's contribution the EP model evidence. |
Remarks
The formula for the result is log(sum_(ratio,a) p(ratio,a) factor(ratio,a,b) / sum_ratio p(ratio) messageTo(ratio))
. Adding up these values across all factors and variables gives the log-evidence estimate for EP.
LogEvidenceRatio(Gaussian, Double, Gaussian)
Evidence message for EP.
Declaration
public static double LogEvidenceRatio(Gaussian ratio, double a, Gaussian b)
Parameters
Type | Name | Description |
---|---|---|
Gaussian | ratio | Incoming message from |
Double | a | Constant value for |
Gaussian | b | Incoming message from |
Returns
Type | Description |
---|---|
Double | Logarithm of the factor's contribution the EP model evidence. |
Remarks
The formula for the result is log(sum_(ratio,b) p(ratio,b) factor(ratio,a,b) / sum_ratio p(ratio) messageTo(ratio))
. Adding up these values across all factors and variables gives the log-evidence estimate for EP.
LogEvidenceRatio(Double, Gaussian, Double)
Evidence message for EP.
Declaration
public static double LogEvidenceRatio(double ratio, Gaussian a, double b)
Parameters
Type | Name | Description |
---|---|---|
Double | ratio | Constant value for |
Gaussian | a | Incoming message from |
Double | b | Constant value for |
Returns
Type | Description |
---|---|
Double | Logarithm of the factor's contribution the EP model evidence. |
Remarks
The formula for the result is log(sum_(a) p(a) factor(ratio,a,b))
. Adding up these values across all factors and variables gives the log-evidence estimate for EP.
LogEvidenceRatio(Double, Double, Gaussian)
Evidence message for EP.
Declaration
public static double LogEvidenceRatio(double ratio, double a, Gaussian b)
Parameters
Type | Name | Description |
---|---|---|
Double | ratio | Constant value for |
Double | a | Constant value for |
Gaussian | b | Incoming message from |
Returns
Type | Description |
---|---|
Double | Logarithm of the factor's contribution the EP model evidence. |
Remarks
The formula for the result is log(sum_(b) p(b) factor(ratio,a,b))
. Adding up these values across all factors and variables gives the log-evidence estimate for EP.
LogEvidenceRatio(Double, Double, Double)
Evidence message for EP.
Declaration
public static double LogEvidenceRatio(double ratio, double a, double b)
Parameters
Type | Name | Description |
---|---|---|
Double | ratio | Constant value for |
Double | a | Constant value for |
Double | b | Constant value for |
Returns
Type | Description |
---|---|
Double | Logarithm of the factor's contribution the EP model evidence. |
Remarks
The formula for the result is log(factor(ratio,a,b))
. Adding up these values across all factors and variables gives the log-evidence estimate for EP.