ISamplingDistribution<T>
Interfaces · AiDotNet.Distributions
Extends parametric distributions with sampling capabilities.
Implements: IParametricDistribution<T>
Known implementations: DistributionBase<T>
For Beginners
Sampling means generating random numbers that follow a specific pattern (distribution). For example, if you sample from a Normal distribution with mean 0 and variance 1, most samples will be close to 0, and samples far from 0 (like 3 or -3) will be rare.
How It Works
Sampling distributions support generating random variates from the distribution. This is essential for Monte Carlo methods, simulation, and Bayesian inference.
Methods
| Method | Summary |
|---|---|
T Sample() |
Generates a single random sample using a default random number generator. |
T Sample(Random random) |
Generates multiple random samples using a default random number generator. |
Vector<T> Sample(Random random, int count) |
Generates multiple random samples from the distribution. |
Vector<T> Sample(int count) |
Generates multiple random samples using a default random number generator. |