StudentT

class StudentT(theDegreesOfFreedom: Double = 1.0, name: String? = null) : Distribution, ContinuousDistributionIfc, InverseCDFIfc, GetRVariableIfc(source)

The Student T distribution

See http://www.mth.kcl.ac.uk/~shaww/web_page/papers/Tdistribution06.pdf See http://en.wikipedia.org/wiki/Student's_t-distribution

This implementation limits the degrees of freedom to be greater than or equal to 1.0

Author

rossetti

Parameters

theDegreesOfFreedom

degrees of freedom

name

an optional name/label

Constructors

Link copied to clipboard
constructor(parameters: DoubleArray)

Constructs a StudentT distribution with parameters0 = degrees of freedom

constructor(theDegreesOfFreedom: Double = 1.0, name: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Used in the binary search to set the search interval for the inverse CDF. The default addFactor is 6.0

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

Gets the parameters

open override fun parameters(params: DoubleArray)

Sets the parameters

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): StudentTRV

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