Search Results for

    Show / Hide Table of Contents

    Class Gate

    Factors for handling gates.

    Inheritance
    Object
    Gate
    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
    public static class Gate

    Methods

    Cases(Boolean)

    Boolean cases factor

    Declaration
    public static bool[] Cases(bool b)
    Parameters
    Type Name Description
    Boolean b
    Returns
    Type Description
    Boolean[]

    CasesBool(Boolean, out Boolean, out Boolean)

    Boolean cases factor expanded into elements

    Declaration
    public static void CasesBool(bool b, out bool case0, out bool case1)
    Parameters
    Type Name Description
    Boolean b
    Boolean case0

    case 0 (true)

    Boolean case1

    case 1 (false)

    CasesInt(Int32, Int32)

    Integer cases factor

    Declaration
    public static bool[] CasesInt(int i, int count)
    Parameters
    Type Name Description
    Int32 i

    index

    Int32 count

    number of cases

    Returns
    Type Description
    Boolean[]

    Enter<T>(Boolean, T)

    Declaration
    public static T[] Enter<T>(bool selector, T value)
    Parameters
    Type Name Description
    Boolean selector
    T value
    Returns
    Type Description
    T[]
    Type Parameters
    Name Description
    T

    Enter<T>(Int32, T)

    Enter factor

    Declaration
    public static T[] Enter<T>(int selector, T value)
    Parameters
    Type Name Description
    Int32 selector
    T value
    Returns
    Type Description
    T[]
    Type Parameters
    Name Description
    T

    EnterOne<T>(Int32, T, Int32)

    Enter one factor

    Declaration
    public static T EnterOne<T>(int selector, T value, int index)
    Parameters
    Type Name Description
    Int32 selector
    T value
    Int32 index
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    EnterPartial<T>(Boolean, T, Int32[])

    Declaration
    public static T[] EnterPartial<T>(bool selector, T value, int[] indices)
    Parameters
    Type Name Description
    Boolean selector
    T value
    Int32[] indices
    Returns
    Type Description
    T[]
    Type Parameters
    Name Description
    T

    EnterPartial<T>(Int32, T, Int32[])

    Enter partial factor

    Declaration
    public static T[] EnterPartial<T>(int selector, T value, int[] indices)
    Parameters
    Type Name Description
    Int32 selector
    T value
    Int32[] indices
    Returns
    Type Description
    T[]
    Type Parameters
    Name Description
    T

    EnterPartialTwo<T>(Boolean, Boolean, T, Int32[])

    Enter partial factor with two cases

    Declaration
    public static T[] EnterPartialTwo<T>(bool case0, bool case1, T value, int[] indices)
    Parameters
    Type Name Description
    Boolean case0
    Boolean case1
    T value
    Int32[] indices
    Returns
    Type Description
    T[]
    Type Parameters
    Name Description
    T

    Exit<T>(Boolean[], T[])

    Exit factor

    Declaration
    public static T Exit<T>(bool[] cases, T[] values)
    Parameters
    Type Name Description
    Boolean[] cases
    T[] values
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    ExitingVariable<T>(T, out T)

    Exiting variable

    Declaration
    [ParameterNames(new string[]{"Use", "Def", "Marginal"})]
    public static T ExitingVariable<T>(T Def, out T Marginal)
    Parameters
    Type Name Description
    T Def
    T Marginal
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    ExitRandom<T>(Boolean[], T[])

    Exit random factor

    Declaration
    [ParameterNames(new string[]{"Exit", "cases", "values"})]
    public static T ExitRandom<T>(bool[] cases, T[] values)
    Parameters
    Type Name Description
    Boolean[] cases
    T[] values
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    ExitRandomTwo<T>(Boolean, Boolean, T[])

    Exit random factor

    Declaration
    [ParameterNames(new string[]{"Exit", "cases", "values"})]
    public static T ExitRandomTwo<T>(bool case0, bool case1, T[] values)
    Parameters
    Type Name Description
    Boolean case0
    Boolean case1
    T[] values
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    ExitTwo<T>(Boolean, Boolean, T[])

    Exit factor with two cases

    Declaration
    public static T ExitTwo<T>(bool case0, bool case1, T[] values)
    Parameters
    Type Name Description
    Boolean case0
    Boolean case1
    T[] values
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    ReplicateExiting<T>(T, Int32)

    Replicate an exiting variable

    Declaration
    [ParameterNames(new string[]{"Uses", "Def", "count"})]
    public static T[] ReplicateExiting<T>(T Def, int count)
    Parameters
    Type Name Description
    T Def
    Int32 count
    Returns
    Type Description
    T[]
    Type Parameters
    Name Description
    T
    In This Article
    Back to top Copyright © .NET Foundation. All rights reserved.