Class IndexOfMaximumOp_Fast
Provides outgoing messages for IndexOfMaximumDouble(IList<Double>), given random arguments to the function.
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Factors
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[FactorMethod(typeof(MMath), "IndexOfMaximumDouble", new Type[]{}, Default = false)]
[Quality(QualityBand.Experimental)]
public static class IndexOfMaximumOp_Fast
Methods
IndexOfMaximumDoubleAverageConditional(IList<Gaussian>, Discrete)
EP message to indexOfMaximumDouble
.
Declaration
public static Discrete IndexOfMaximumDoubleAverageConditional(IList<Gaussian> list, Discrete result)
Parameters
Type | Name | Description |
---|---|---|
IList<Gaussian> | list | Incoming message from |
Discrete | result | Modified to contain the outgoing message. |
Returns
Type | Description |
---|---|
Discrete |
|
Remarks
The outgoing message is a distribution matching the moments of indexOfMaximumDouble
as the random arguments are varied. The formula is proj[p(indexOfMaximumDouble) sum_(list) p(list) factor(indexOfMaximumDouble,list)]/p(indexOfMaximumDouble)
.
Exceptions
Type | Condition |
---|---|
ImproperMessageException |
|
IndexOfMaximumDoubleAverageConditional2(IList<Gaussian>, Discrete)
EP message to indexOfMaximumDouble
.
Declaration
public static Discrete IndexOfMaximumDoubleAverageConditional2(IList<Gaussian> list, Discrete result)
Parameters
Type | Name | Description |
---|---|---|
IList<Gaussian> | list | Incoming message from |
Discrete | result | Modified to contain the outgoing message. |
Returns
Type | Description |
---|---|
Discrete |
|
Remarks
The outgoing message is a distribution matching the moments of indexOfMaximumDouble
as the random arguments are varied. The formula is proj[p(indexOfMaximumDouble) sum_(list) p(list) factor(indexOfMaximumDouble,list)]/p(indexOfMaximumDouble)
.
Exceptions
Type | Condition |
---|---|
ImproperMessageException |
|