GeneralizedBeta

class GeneralizedBeta(alphaShape: Double, betaShape: Double, minimum: Double = 0.0, maximum: Double = 1.0, name: String? = null) : Distribution, ContinuousDistributionIfc, InverseCDFIfc, RVParametersTypeIfc, MomentsIfc(source)

Create Beta distribution with the supplied parameters

Parameters

alphaShape

the first shape parameter

betaShape

the second shape parameter

minimum

the minimum of the range

maximum

the maximum of the range

Constructors

Link copied to clipboard
constructor(alphaShape: Double, betaShape: Double, minimum: Double = 0.0, maximum: Double = 1.0, name: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val kurtosis: Double
Link copied to clipboard
var max: Double
Link copied to clipboard
open override val mean: Double
Link copied to clipboard
var min: Double
Link copied to clipboard
Link copied to clipboard
open override val skewness: Double
Link copied to clipboard
open override val variance: Double

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(): GeneralizedBeta
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

Returns the mean or expected value of a distribution

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

Returns the parameters as an array params0 the alpha shape parameter params1the beta shape parameter params2 the minimum of the range params3 the maximum of the range

open override fun parameters(params: DoubleArray)

Changes the parameters to the supplied values params0 the alpha shape parameter params1the beta shape parameter params2 the minimum of the range params3 the maximum of the range

fun parameters(alphaShape: Double, betaShape: Double, theMinimum: Double = min, theMaximum: Double = max)

Changes the parameters to the supplied values

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

Returns the f(x) where f represents the probability density function for the distribution. Note this is not a probability.

Link copied to clipboard
open override fun randomVariable(streamNumber: Int, streamProvider: RNStreamProviderIfc): GeneralizedBetaRV

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

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open override fun variance(): Double

Returns the variance of the distribution if defined