Search Results for

    Show / Hide Table of Contents

    Interface HasPoint<T>

    Whether the distribution supports being a point mass

    Namespace: Microsoft.ML.Probabilistic.Distributions
    Assembly: Microsoft.ML.Probabilistic.dll
    Syntax
    public interface HasPoint<T>
    Type Parameters
    Name Description
    T

    Properties

    IsPointMass

    Gets whether the distribution parameters represent a point mass.

    Declaration
    bool IsPointMass { get; }
    Property Value
    Type Description
    Boolean

    Point

    Access the location of a point mass.

    Declaration
    T Point { get; set; }
    Property Value
    Type Description
    T
    Remarks

    If the distribution parameters do not represent a point mass, getting this property returns an undefined value (if T is a ValueType) or a storage area with undefined contents (if T is a reference type). It should not throw an exception. Setting Point will change the distribution into a point mass, overriding any other property settings. Note: Point = Point does have an effect!

    If T is a reference type, then the result is volatile. Its contents expire upon invoking any subsequent distribution method.

    Point is a property because it is expected that each distribution would have a corresponding data field. Accessing the Point should take constant time.

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