Search Results for

    Show / Hide Table of Contents

    Class BeliefPropagationGateEnterOneOp

    Provides outgoing messages for EnterOne<T>(Int32, T, Int32), given random arguments to the function.

    Inheritance
    Object
    BeliefPropagationGateEnterOneOp
    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), "EnterOne<>", new Type[]{null, typeof(int), null, typeof(int)})]
    [Quality(QualityBand.Stable)]
    public static class BeliefPropagationGateEnterOneOp
    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>(TDist, Discrete, TDist, Int32, TDist)

    EP message to value.

    Declaration
    public static TDist ValueAverageConditional<TDist>([SkipIfAllUniform] TDist enterOne, Discrete selector, TDist value, int index, TDist result)
        where TDist : ICloneable, SettableToUniform, SettableToWeightedSum<TDist>, SettableTo<TDist>, CanGetLogAverageOf<TDist>, CanGetLogNormalizer
    Parameters
    Type Name Description
    TDist enterOne

    Incoming message from enterOne. Must be a proper distribution. If uniform, the result will be uniform.

    Discrete selector

    Incoming message from selector.

    TDist value

    Incoming message from value.

    Int32 index

    Constant value for index.

    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_(enterOne,selector) p(enterOne,selector) factor(enterOne,selector,value,index)]/p(value).

    Exceptions
    Type Condition
    ImproperMessageException

    enterOne is not a proper distribution.

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