Home Reference Source Repository
public class | source

ChiSquared

Extends:

Distribution → ChiSquared

The Chi-Squared Distribution is a continuous probability distribution with parameters df = degrees of freedom. See: Chi-Squared Distribution

Static Method Summary

Static Public Methods
public static

cdf(x: number, params: Object): number

Calculate the probability of getting x or less from ChiSquared(df).

public static

kurtosis(params: Object): number

Get the kurtosis of ChiSquared(df).

public static

mean(params: Object): number

Get the mean of ChiSquared(df).

public static

pdf(x: number, params: Object): number

Calculate the probability of exaclty x in ChiSquared(df).

public static

random(params: Object): number

Generate a random value from ChiSquared(df).

public static

relStdDev(params: Object): number

Get the relative standard deviation of ChiSquared(df).

public static

skewness(params: Object): number

Get the skewness of ChiSquared(df).

public static

stdDev(params: Object): number

Get the standard deviation of ChiSquared(df).

public static

variance(params: Object): number

Get the variance of ChiSquared(df).

Inherited Summary

From class Distribution
public static

Generate a uniform random variable.

public static

sample(k: number, params: Object): Array<number>

Generate an array of k random values.

public

The distribution kurtosis.

public

The distribution mean.

public

The valitated distribution parameters.

public

The distribution relative standard deviation.

public

The distribution skewness.

public

The distribution standard deviation.

public

The distribution variance.

public

Calculate the probability of getting x or less.

public

Calculate the probability of exaclty x.

public

Generate a random value.

public

Generate an array of n random values.

Static Public Methods

public static cdf(x: number, params: Object): number source

Calculate the probability of getting x or less from ChiSquared(df).

Override:

Distribution#cdf

Params:

NameTypeAttributeDescription
x number

The value to predict.

params Object

The distribution parameters.

Return:

number

The probability of getting x or less from ChiSquared(df).

public static kurtosis(params: Object): number source

Get the kurtosis of ChiSquared(df).

Override:

Distribution#kurtosis

Params:

NameTypeAttributeDescription
params Object

The distribution parameters.

Return:

number

The kurtosis of ChiSquared(df).

public static mean(params: Object): number source

Get the mean of ChiSquared(df).

Override:

Distribution#mean

Params:

NameTypeAttributeDescription
params Object

The distribution parameters.

Return:

number

The mean of ChiSquared(df).

public static pdf(x: number, params: Object): number source

Calculate the probability of exaclty x in ChiSquared(df).

Override:

Distribution#pdf

Params:

NameTypeAttributeDescription
x number

The value to predict.

params Object

The distribution parameters.

Return:

number

The probability of x happening in ChiSquared(df).

public static random(params: Object): number source

Generate a random value from ChiSquared(df).

Override:

Distribution#random

Params:

NameTypeAttributeDescription
params Object

The distribution parameters.

Return:

number

The random value from ChiSquared(df).

public static relStdDev(params: Object): number source

Get the relative standard deviation of ChiSquared(df).

Override:

Distribution#relStdDev

Params:

NameTypeAttributeDescription
params Object

The distribution parameters.

Return:

number

The relative standard deviation of ChiSquared(df).

public static skewness(params: Object): number source

Get the skewness of ChiSquared(df).

Override:

Distribution#skewness

Params:

NameTypeAttributeDescription
params Object

The distribution parameters.

Return:

number

The skewness of ChiSquared(df).

public static stdDev(params: Object): number source

Get the standard deviation of ChiSquared(df).

Override:

Distribution#stdDev

Params:

NameTypeAttributeDescription
params Object

The distribution parameters.

Return:

number

The standard deviation of ChiSquared(df).

public static variance(params: Object): number source

Get the variance of ChiSquared(df).

Override:

Distribution#variance

Params:

NameTypeAttributeDescription
params Object

The distribution parameters.

Return:

number

The variance of ChiSquared(df).