Search Results for

    Show / Hide Table of Contents

    Class BeliefPropagationGateEnterPartialTwoOp

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

    Inheritance
    Object
    BeliefPropagationGateEnterPartialTwoOp
    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), "EnterPartialTwo<>", new Type[]{})]
    [Quality(QualityBand.Stable)]
    public static class BeliefPropagationGateEnterPartialTwoOp
    Remarks

    The message operators contained in this class assume that the distribution of the variable entering the gate can represent mixtures exactly.

    Methods

    ValueAverageConditional<TDist>(IList<TDist>, Bernoulli, Bernoulli, TDist, Int32[], TDist)

    EP message to value.

    Declaration
    public static TDist ValueAverageConditional<TDist>([SkipIfAllUniform] IList<TDist> enterPartialTwo, Bernoulli case0, Bernoulli case1, TDist value, int[] indices, TDist result)
        where TDist : ICloneable, SettableToUniform, SettableToWeightedSum<TDist>, CanGetLogAverageOf<TDist>, CanGetLogNormalizer
    Parameters
    Type Name Description
    IList<TDist> enterPartialTwo

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

    Bernoulli case0

    Incoming message from case0.

    Bernoulli case1

    Incoming message from case1.

    TDist value

    Incoming message from value.

    Int32[] indices

    Constant value for indices.

    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 entering the gate.

    Remarks

    The outgoing message is a distribution matching the moments of value as the random arguments are varied. The formula is proj[p(value) sum_(enterPartialTwo,case0,case1) p(enterPartialTwo,case0,case1) factor(enterPartialTwo,case0,case1,value,indices)]/p(value).

    Exceptions
    Type Condition
    ImproperMessageException

    enterPartialTwo is not a proper distribution.

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