Search Results for

    Show / Hide Table of Contents

    Class Constrain

    A repository of commonly used constraint methods.

    Inheritance
    Object
    Constrain
    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 Constrain

    Methods

    Contain(IList<Int32>, Int32)

    Constrains a set of integers to contain a particular integer.

    Declaration
    public static void Contain(IList<int> set, int i)
    Parameters
    Type Name Description
    IList<Int32> set

    The set of integers, specified as a list

    Int32 i

    The integer which the set must contain

    Equal<T>(T, T)

    Constrains a value to be equal to another value.

    Declaration
    public static void Equal<T>(T A, T B)
    Parameters
    Type Name Description
    T A

    First value

    T B

    Second value

    Type Parameters
    Name Description
    T

    Value type

    EqualRandom<TDomain, TDistribution>(TDomain, TDistribution)

    Constrains a value to be equal to a sample from dist.

    Declaration
    public static void EqualRandom<TDomain, TDistribution>(TDomain value, TDistribution dist)
        where TDistribution : Sampleable<TDomain>
    Parameters
    Type Name Description
    TDomain value

    Value

    TDistribution dist

    Distribution instance

    Type Parameters
    Name Description
    TDomain

    Domain type

    TDistribution

    Distribution type

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