Package-level declarations

Types

Link copied to clipboard
class Bernoulli(successProb: Double = 0.5, name: String? = null) : Distribution, DiscreteDistributionIfc, RVParametersTypeIfc

Provides an implementation of the Bernoulli distribution with success probability (p) P(X=1) = p P(X=0) = 1-p

Link copied to clipboard

Create Beta distribution with the supplied parameters

Link copied to clipboard
Link copied to clipboard
fun interface CDFIfc

Provides an interface for functions related to a cumulative distribution function CDF

Link copied to clipboard
open class CentralMVNDistribution(covariances: Array<DoubleArray>, stream: RNStreamIfc = KSLRandom.nextRNStream()) : MVCDF

Represents a multi-variate normal distribution with means = 0.0 and the provided covariances. The computed CDF values are to about 2 decimal places using Monte-Carlo integration. There are more efficient and accurate methods to do this computation than done here.

Link copied to clipboard
class CentralMVTDistribution(dof: Double, covariances: Array<DoubleArray>, stream: RNStreamIfc = KSLRandom.nextRNStream()) : CentralMVNDistribution

Represents a multi-variate t-distribution with means = 0.0 and the provided covariances. The computed CDF values are to about 2 decimal places using Monte-Carlo integration

Link copied to clipboard

Constructs a degenerate distribution with all probability at the provided point. Once made the value of the constant cannot be changed.

Link copied to clipboard

Provides a representation for a discrete distribution with arbitrary values and assigned probabilities to each value. Allows the specification of the distribution via a pair of arrays containing the values = {v1, v2, ... , vn} and the cumulative probabilities cdf = {c1, c2, ... , 1.0}

Link copied to clipboard
abstract class Distribution(name: String? = null) : DistributionIfc, IdentityIfc
Link copied to clipboard

General interface for functions that have probability distributions

Link copied to clipboard

Represents the basic interface that probability distributions must implement.

Link copied to clipboard
fun interface DomainIfc

Used to represent the set of possible values for continuous distributions The interval may be infinite

Link copied to clipboard
class DUniform(min: Int = 0, max: Int = 1, name: String? = null) : Distribution, DiscreteDistributionIfc, RVParametersTypeIfc

Models discrete random variables that are uniformly distributed over a contiguous range of integers. the lower limit must be < upper limit

Link copied to clipboard

Models exponentially distributed random variables This distribution is commonly use to model the time between events

Link copied to clipboard
Link copied to clipboard

Models random variables that have gamma distribution For more information on the gamma distribution and its related functions, see "Object-Oriented Numerical Methods" by D. Besset

Link copied to clipboard
class GeneralizedBeta(alphaShape: Double, betaShape: Double, minimum: Double = 0.0, maximum: Double = 1.0, name: String? = null) : Distribution, ContinuousDistributionIfc, InverseCDFIfc, RVParametersTypeIfc

Create Beta distribution with the supplied parameters

Link copied to clipboard

The geometric distribution is the probability distribution of the number Y = X − 1 of failures before the first success, supported on the set { 0, 1, 2, 3, ... }, where X is the number of Bernoulli trials needed to get one success.

Link copied to clipboard
fun interface InverseCDFIfc

Provides the inverse cumulative distribution function interface for a CDF

Link copied to clipboard
Link copied to clipboard

A port to Kotlin of the Java implementation provided in:

Link copied to clipboard

Laplace(location, scale) distribution

Link copied to clipboard

Logistic(location, scale) distribution

Link copied to clipboard
fun interface LogLikelihoodIfc
Link copied to clipboard
Link copied to clipboard

Models the lognormal distribution This distribution is commonly used to model the time of a task

Link copied to clipboard

Adds the first order and 2nd order loss functions to the DistributionFunctionIfc.

Link copied to clipboard
fun interface MeanIfc
Link copied to clipboard
abstract class MVCDF(nDim: Int)
Link copied to clipboard

The number of failures before the rth success in a sequence of independent Bernoulli trials with probability p of success on each trial. The range of this random variable is {0, 1, 2, ....}

Link copied to clipboard

Models normally distributed random variables

Link copied to clipboard

Represents the probability density function for 1-d continuous distributions

Link copied to clipboard

Represents a Pearson Type V distribution, see Law (2007) Simulation Modeling and Analysis, McGraw-Hill, pg 293

Link copied to clipboard
class PearsonType6(theShape1: Double = 2.0, theShape2: Double = 3.0, theScale: Double = 1.0, name: String? = null) : Distribution, ContinuousDistributionIfc, InverseCDFIfc, GetRVariableIfc, RVParametersTypeIfc

Represents a Pearson Type VI distribution, see Law (2007) Simulation Modeling and Analysis, McGraw-Hill, pg 294

Link copied to clipboard
fun interface PMFIfc

Represents the probability mass function for 1-d discrete distributions

Link copied to clipboard

Represents a Poisson random variable. A Poisson random variable represents the number of occurrences of an event with time or space.

Link copied to clipboard
interface ProbInRangeIfc
Link copied to clipboard

Represents the 2nd order loss function

Link copied to clipboard
open class ShiftedDistribution(theDistribution: DistributionIfc, theShift: Double, name: String? = null) : Distribution

Represents a Distribution that has been Shifted (translated to the right) The shift must be >= 0.0

Link copied to clipboard
class StudentT(theDegreesOfFreedom: Double = 1.0, name: String? = null) : Distribution, ContinuousDistributionIfc, InverseCDFIfc, GetRVariableIfc

The Student T distribution

Link copied to clipboard
class Triangular(theMin: Double = 0.0, theMode: Double = 0.0, theMax: Double = 1.0, name: String? = null) : Distribution, ContinuousDistributionIfc, GetRVariableIfc, RVParametersTypeIfc

Represents the Triangular distribution with parameters - minimum value, maximum value and most likely value

Link copied to clipboard
class TruncatedDistribution(theDistribution: DistributionIfc, theCDFLowerLimit: Double, theCDFUpperLimit: Double, theLowerLimit: Double, theUpperLimit: Double, name: String? = null) : Distribution, GetRVariableIfc

Constructs a truncated distribution based on the provided distribution

Link copied to clipboard
class TruncatedNormal(normalMean: Double, normalVariance: Double, interval: Interval, name: String? = null) : Distribution, ContinuousDistributionIfc, InverseCDFIfc, GetRVariableIfc

Creates a truncated normal distribution over the supplied interval. The supplied mean normalMean and variance normalVariance is the mean of the not truncated normal distribution. The supplied mean must be contained within the supplied interval.

Link copied to clipboard
object Tukey

Computes the probability and quantile that the studentized range, each based on n means and with df degrees of freedom

Link copied to clipboard

Defines a uniform distribution over the given range.

Link copied to clipboard
fun interface VarianceIfc

Defines an interface for getting the variance of a distribution

Link copied to clipboard

This class defines a Weibull distribution

Functions

Link copied to clipboard
Link copied to clipboard
fun main()
fun main()
fun main()
fun main()
fun main()
fun main()
fun main()
Link copied to clipboard
fun testCDF()
Link copied to clipboard
fun testCDF1()
Link copied to clipboard