Table of Contents

Class CategoricalDistribution

Namespace
AiDotNet.Models
Assembly
AiDotNet.dll

Represents a categorical (discrete choice) parameter distribution.

public class CategoricalDistribution : ParameterDistribution
Inheritance
CategoricalDistribution
Inherited Members

Properties

Choices

Gets or sets the list of possible choices.

public List<object> Choices { get; set; }

Property Value

List<object>

DistributionType

Gets the type of distribution.

public override string DistributionType { get; }

Property Value

string

Methods

Sample(Random)

Samples a value from this distribution.

public override object Sample(Random random)

Parameters

random Random

Returns

object