Search Results for

    Show / Hide Table of Contents

    Class ConditionBlock<T>

    Represents a conditional block in a model definition. Anything defined inside the block is placed inside a gate, whose condition is the condition of the block.

    Inheritance
    Object
    StatementBlock
    ConditionBlock
    ConditionBlock<T>
    CaseBlock
    IfBlock
    SwitchBlock
    Implements
    IDisposable
    Inherited Members
    StatementBlock.CloseBlock()
    StatementBlock.Dispose()
    Object.Equals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Namespace: Microsoft.ML.Probabilistic.Models
    Assembly: Microsoft.ML.Probabilistic.Compiler.dll
    Syntax
    public class ConditionBlock<T> : ConditionBlock, IDisposable, IStatementBlock
    Type Parameters
    Name Description
    T

    Properties

    ConditionValue

    The value of the condition variable which switches on this IfBlock.

    Declaration
    public T ConditionValue { get; }
    Property Value
    Type Description
    T

    ConditionVariable

    The random variable which controls when this IfBlock is active.

    Declaration
    public Variable<T> ConditionVariable { get; }
    Property Value
    Type Description
    Variable<T>

    ConditionVariableUntyped

    The condition variable for this condition block.

    Declaration
    public override Variable ConditionVariableUntyped { get; }
    Property Value
    Type Description
    Variable
    Overrides
    ConditionBlock.ConditionVariableUntyped

    Methods

    Equals(Object)

    Equals override

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    Object.Equals(Object)

    GetHashCode()

    Hash code override

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    Object.GetHashCode()

    ToString()

    ToString override

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()

    Implements

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