Package-level declarations

Types

Link copied to clipboard

Represents the Bernoulli distribution, the simplest discrete probability distribution.

Link copied to clipboard
class BetaBinomialDistribution(val trials: Int, val alpha: Double, val beta: Double) : DiscreteDistribution

Represents the beta-binomial distribution, a compound distribution arising when the success probability of a binomial distribution is itself random and follows a beta distribution.

Link copied to clipboard
class BetaDistribution(val alpha: Double, val beta: Double) : ContinuousDistribution

Represents the Beta distribution, a continuous probability distribution defined on the interval 0, 1.

Link copied to clipboard
class BinomialDistribution(val trials: Int, val probability: Double) : DiscreteDistribution

Represents the binomial distribution, defined by the number of trials and the probability of success on each trial.

Link copied to clipboard
class CauchyDistribution(val location: Double = 0.0, val scale: Double = 1.0) : ContinuousDistribution

Represents the Cauchy distribution (also known as the Lorentz distribution).

Link copied to clipboard

Represents the chi-squared distribution, a continuous probability distribution defined on the interval [0, +infinity).

Link copied to clipboard

Common interface for continuous probability distributions.

Link copied to clipboard

Common interface for discrete probability distributions.

Link copied to clipboard
sealed interface Distribution

Represents the common sealed interface for all probability distributions in kstats.

Link copied to clipboard

Represents the exponential distribution, a continuous probability distribution that models the time between events in a Poisson process.

Link copied to clipboard
class FDistribution(val dfNumerator: Double, val dfDenominator: Double) : ContinuousDistribution

Represents the F-distribution (also known as the Fisher-Snedecor distribution).

Link copied to clipboard
class GammaDistribution(val shape: Double, val rate: Double = 1.0) : ContinuousDistribution

Represents the Gamma distribution, a continuous probability distribution defined on the interval [0, +infinity).

Link copied to clipboard

Represents the geometric distribution, which models the number of failures before the first success in a series of independent Bernoulli trials.

Link copied to clipboard
class GumbelDistribution(val mu: Double = 0.0, val beta: Double = 1.0) : ContinuousDistribution

The Gumbel distribution (extreme value type I, right-skewed), defined by its location mu and scale beta parameters.

Link copied to clipboard
class HypergeometricDistribution(val population: Int, val successes: Int, val draws: Int) : DiscreteDistribution

Represents the hypergeometric distribution, which models the number of successes when drawing without replacement from a finite population.

Link copied to clipboard
class LaplaceDistribution(val mu: Double = 0.0, val scale: Double = 1.0) : ContinuousDistribution

Represents the Laplace distribution (also known as the double exponential distribution), defined by its location mu and scale parameters.

Link copied to clipboard
class LevyDistribution(val mu: Double = 0.0, val c: Double = 1.0) : ContinuousDistribution

Represents the Levy distribution, a heavy-tailed, right-skewed continuous probability distribution supported on [mu, +infinity).

Link copied to clipboard

Represents the logarithmic (log-series) distribution, a discrete power-series distribution on the positive integers {1, 2, 3, ...}.

Link copied to clipboard
class LogisticDistribution(val mu: Double = 0.0, val scale: Double = 1.0) : ContinuousDistribution

The logistic distribution, defined by its location mu and scale parameter.

Link copied to clipboard
class LogNormalDistribution(val mu: Double = 0.0, val sigma: Double = 1.0) : ContinuousDistribution

Represents the log-normal distribution.

Link copied to clipboard

Represents the Nakagami-m distribution, a continuous probability distribution defined on the interval [0, +infinity).

Link copied to clipboard
class NegativeBinomialDistribution(val successes: Int, val probability: Double) : DiscreteDistribution

Represents the negative binomial distribution, which models the number of failures before achieving a specified number of successes in a sequence of independent Bernoulli trials.

Link copied to clipboard
class NormalDistribution(val mu: Double = 0.0, val sigma: Double = 1.0) : ContinuousDistribution

Represents the normal (Gaussian) distribution, the most widely used continuous probability distribution in statistics.

Link copied to clipboard
class ParetoDistribution(val shape: Double = 1.0, val scale: Double = 1.0) : ContinuousDistribution

The Pareto Type I distribution, defined by its shape (α) and scale (xm) parameters.

Link copied to clipboard

Represents the Poisson distribution, defined by its average rate of occurrence.

Link copied to clipboard
class StudentTDistribution(val degreesOfFreedom: Double) : ContinuousDistribution

Represents Student's t-distribution, a continuous probability distribution defined on the entire real line.

Link copied to clipboard

Represents the triangular distribution, a continuous probability distribution defined by a lower limit a, an upper limit b, and a mode (peak) c.

Link copied to clipboard

Represents the discrete uniform distribution, where all integer outcomes in a finite range are equally likely.

Link copied to clipboard
class UniformDistribution(val min: Double = 0.0, val max: Double = 1.0) : ContinuousDistribution

Represents the continuous uniform distribution, where all values in the interval [min, max] are equally likely.

Link copied to clipboard
class WeibullDistribution(val shape: Double, val scale: Double = 1.0) : ContinuousDistribution

Represents the Weibull distribution.

Link copied to clipboard
class ZipfDistribution(val numberOfElements: Int, val exponent: Double) : DiscreteDistribution

Represents the Zipf distribution (finite support variant), a discrete power-law distribution over the integers 1, 2, ..., numberOfElements.