Metalog2P

class Metalog2P(a1: Double = 0.0, a2: Double = 1.0, lowerBound: Double = Double.NEGATIVE_INFINITY, upperBound: Double = Double.POSITIVE_INFINITY, name: String? = null) : MetalogDistribution, RVParametersTypeIfc(source)

A two-term metalog distribution.

With both bounds infinite this is exactly a logistic distribution whose location is the first coefficient and whose scale is the second. With a finite lower bound it is the log-logistic, known in economics as the Fisk distribution. With both bounds finite it is the logit-logistic, also called the Tadikamalla and Johnson bounded distribution.

Two terms is the smallest metalog. It has no shape flexibility beyond location and scale, so it is chiefly useful as a baseline against which the higher-term members are compared.

Parameters

a1

the location, which is the median in fitting space

a2

the scale, which must be strictly positive

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, 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.

Functions

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

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