DistributionBase<T>
Base Classes · AiDotNet.Distributions
Abstract base class for parametric probability distributions.
Implements: ISamplingDistribution<T>
Known derived types: BetaDistribution<T>, ExponentialDistribution<T>, GammaDistribution<T>, LaplaceDistribution<T>, LogNormalDistribution<T>, NegativeBinomialDistribution<T>, NormalDistribution<T>, PoissonDistribution<T>, StudentTDistribution<T>, WeibullDistribution<T>
For Beginners
This is the foundation that all specific distributions (Normal, Laplace, Gamma, etc.) build upon. It handles the common math operations so each distribution only needs to implement its specific formulas.
How It Works
This base class provides common functionality for all distributions including numeric operations through INumericOperations, default implementations for sampling, and helper methods for numerical computations.
Properties
| Property | Summary |
|---|---|
T Mean { get; } |
|
T StdDev { get; } |
|
T Variance { get; } |
|
Vector<T> Parameters { get; set; } |
|
int NumParameters { get; } |
|
string[] ParameterNames { get; } |
Methods
| Method | Summary |
|---|---|
IParametricDistribution<T> Clone() |
|
Matrix<T> FisherInformation() |
|
T Cdf(T x) |
|
T InverseCdf(T p) |
|
T LogPdf(T x) |
|
T Pdf(T x) |
|
T Sample() |
|
T Sample(Random random) |
|
Vector<T> GradLogPdf(T x) |
|
Vector<T> Sample(Random random, int count) |
|
Vector<T> Sample(int count) |