Search Results for

    Show / Hide Table of Contents

    Delegate Sampler<DistributionType, T>

    Delegate type for sampling a distribution. This is used for distributions such as VectorGaussian which have a large memory footprint. If a distribution supports CanSamplePrep<DistributionType, T>, then it can return a delegate of this type to do successive sampling without recreating a workspace each time.

    Namespace: Microsoft.ML.Probabilistic.Distributions
    Assembly: Microsoft.ML.Probabilistic.dll
    Syntax
    public delegate T Sampler<DistributionType, T>(DistributionType distribution, T result);
    Parameters
    Type Name Description
    DistributionType distribution

    The distribution instance

    T result

    The value at which to evaluate the log density

    Returns
    Type Description
    T

    The delegate's return type is the domain type

    Type Parameters
    Name Description
    DistributionType

    The distribution type

    T

    The domain type of the distribution

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