PearsonType6

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

Parameters

shape1

shape 1 must be greater than 0.0

shape2

shape 2 must be greater than 0.0

scale

scale must be greater than 0.0

name

an optional name/label

Constructors

Link copied to clipboard
constructor(shape1: Double = 2.0, shape2: Double = 3.0, scale: Double = 1.0, name: String? = null)
constructor(parameters: DoubleArray)

Creates a PearsonTypeVI distribution

Properties

Link copied to clipboard

the scale must be greater than 0.0

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun cdf(x: Double): Double

Returns the F(x) = Pr{X <= x} where F represents the cumulative distribution function

Link copied to clipboard
open override fun domain(): Interval
Link copied to clipboard
open override fun instance(): PearsonType6
Link copied to clipboard
open override fun invCDF(p: Double): Double

Provides the inverse cumulative distribution function for the distribution

Link copied to clipboard
open override fun mean(): Double
Link copied to clipboard
open override fun parameters(): DoubleArray
open override fun parameters(params: DoubleArray)

params0 = alpha1 params1 = alpha2 params2 = beta

Link copied to clipboard
open override fun pdf(x: Double): Double
Link copied to clipboard
open override fun randomVariable(streamNumber: Int, streamProvider: RNStreamProviderIfc): PearsonType6RV

Promises to return a random variable that uses the supplied stream number using the supplied stream provider

Link copied to clipboard
fun setParameters(alpha1: Double, alpha2: Double, beta: Double)
Link copied to clipboard
fun setShapeParameters(alpha1: Double, alpha2: Double)
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open override fun variance(): Double