Search Results for

    Show / Hide Table of Contents

    Class BeliefPropagationGateExitTwoOp

    Provides outgoing messages for ExitTwo<T>(Boolean, Boolean, T[]), given random arguments to the function.

    Inheritance
    Object
    BeliefPropagationGateExitTwoOp
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    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 exitTwo.

    Bernoulli case0

    Incoming message from case0.

    Bernoulli case1

    Incoming message from case1.

    IList<TDist> values

    Incoming message from values. Must be a proper distribution. If all elements are uniform, the result will be uniform.

    TDist result

    Modified to contain the outgoing message.

    Returns
    Type Description
    TDist

    result

    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

    values is not a proper distribution.

    In This Article
    Back to top Copyright © .NET Foundation. All rights reserved.