Search Results for

    Show / Hide Table of Contents

    Class ReplicateOp_Divide

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

    Inheritance
    Object
    ReplicateOp_Divide
    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(Clone), "Replicate<>", new Type[]{}, Default = true)]
    [Buffers(new string[]{"marginal", "toDef"})]
    [Quality(QualityBand.Mature)]
    public static class ReplicateOp_Divide

    Methods

    DefAverageConditional<T>(T, T)

    EP message to Def.

    Declaration
    public static T DefAverageConditional<T>(T toDef, T result)
        where T : SettableTo<T>
    Parameters
    Type Name Description
    T toDef

    Buffer toDef.

    T result

    Modified to contain the outgoing message.

    Returns
    Type Description
    T

    result

    Type Parameters
    Name Description
    T

    The type of the messages.

    Remarks

    The outgoing message is the factor viewed as a function of Def conditioned on the given values.

    Marginal<T>(T, T, T)

    Update the buffer marginal.

    Declaration
    [SkipIfAllUniform]
    public static T Marginal<T>(T toDef, T Def, T result)
        where T : SettableToProduct<T>
    Parameters
    Type Name Description
    T toDef

    Buffer toDef.

    T Def

    Incoming message from Def.

    T result

    Modified to contain the outgoing message.

    Returns
    Type Description
    T

    result

    Type Parameters
    Name Description
    T

    The type of the messages.

    Remarks

    MarginalIncrement<T>(T, T, T)

    Declaration
    [SkipIfAllUniform]
    public static T MarginalIncrement<T>(T result, T def, T use)
        where T : SettableToProduct<T>
    Parameters
    Type Name Description
    T result

    Modified to contain the outgoing message.

    T def

    Incoming message from Def.

    T use
    Returns
    Type Description
    T

    result

    Type Parameters
    Name Description
    T

    The type of the messages.

    Remarks

    MarginalInit<T>(T)

    Initialize the buffer marginal.

    Declaration
    public static T MarginalInit<T>(T Def)
        where T : ICloneable
    Parameters
    Type Name Description
    T Def

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

    Returns
    Type Description
    T

    Initial value of buffer marginal.

    Type Parameters
    Name Description
    T

    The type of the messages.

    Remarks

    Exceptions
    Type Condition
    ImproperMessageException

    Def is not a proper distribution.

    ToDef<T>(IReadOnlyList<T>, T)

    Declaration
    [SkipIfAllUniform]
    public static T ToDef<T>(IReadOnlyList<T> Uses, T result)
        where T : SettableToProduct<T>, SettableTo<T>, SettableToUniform
    Parameters
    Type Name Description
    IReadOnlyList<T> Uses
    T result
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    The type of the messages.

    ToDefInit<T>(T)

    Initialize the buffer toDef.

    Declaration
    public static T ToDefInit<T>(T Def)
        where T : ICloneable, SettableToUniform
    Parameters
    Type Name Description
    T Def

    Incoming message from Def.

    Returns
    Type Description
    T

    Initial value of buffer toDef.

    Type Parameters
    Name Description
    T

    The type of the messages.

    Remarks

    UsesAverageConditional<T>(T, T, Int32, T)

    EP message to Uses.

    Declaration
    public static T UsesAverageConditional<T>(T Uses, T marginal, int resultIndex, T result)
        where T : SettableToRatio<T>
    Parameters
    Type Name Description
    T Uses

    Incoming message from Uses.

    T marginal

    Buffer marginal.

    Int32 resultIndex

    Index of the Uses for which a message is desired.

    T result

    Modified to contain the outgoing message.

    Returns
    Type Description
    T

    result

    Type Parameters
    Name Description
    T

    The type of the messages.

    Remarks

    The outgoing message is the factor viewed as a function of Uses conditioned on the given values.

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