Metalog6P

class Metalog6P(a1: Double = 0.0, a2: Double = 1.0, a3: Double = 0.0, a4: Double = 0.0, a5: Double = 0.0, a6: Double = 0.0, lowerBound: Double = Double.NEGATIVE_INFINITY, upperBound: Double = Double.POSITIVE_INFINITY, name: String? = null) : MetalogDistribution, RVParametersTypeIfc(source)

A six-term metalog distribution.

Six terms is the largest arity with a registered class, chosen to match the range of term counts the distribution fitting estimators search. The underlying basis functions place no limit on the number of terms, so an application needing more can extend the base class directly, forgoing the random variable type registration and the fitting pipeline.

No closed-form moment expressions cover this arity, so the mean and variance are obtained by numerical integration of the quantile function and cached.

Parameters

a1

the location coefficient

a2

the scale coefficient, which must remain strictly positive

a3

the skewness coefficient

a4

the kurtosis coefficient

a5

the fifth coefficient, refining the location series of the quantile function

a6

the sixth coefficient, refining the scale series of the quantile function

lowerBound

the lower bound, or negative infinity when unbounded below

upperBound

the upper bound, or positive infinity when unbounded above

name

an optional name

Constructors

Link copied to clipboard
constructor(a1: Double = 0.0, a2: Double = 1.0, a3: Double = 0.0, a4: Double = 0.0, a5: Double = 0.0, a6: Double = 0.0, lowerBound: Double = Double.NEGATIVE_INFINITY, upperBound: Double = Double.POSITIVE_INFINITY, name: String? = null)

Properties

Link copied to clipboard
var a1: Double

The location coefficient.

Link copied to clipboard
var a2: Double

The scale coefficient, which must remain strictly positive.

Link copied to clipboard
var a3: Double

The skewness coefficient.

Link copied to clipboard
var a4: Double

The kurtosis coefficient.

Link copied to clipboard
var a5: Double

The fifth coefficient, refining the location series of the quantile function.

Link copied to clipboard
var a6: Double

The sixth coefficient, refining the scale series of the quantile function.

Functions

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

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