Kernel: Abstract Kernel Class In distr6: The Complete R6 Probability Distributions Interface

Description

Abstract class that cannot be constructed directly.

Value

Returns error. Abstract classes cannot be constructed directly.

Super class

distr6::Distribution -> Kernel

Public fields

package

Arguments
which

(character(1) | numeric(1)
Ignored if distribution is unimodal. Otherwise "all" returns all modes, otherwise specifies which mode to return.

Method mean()

Calculates the mean (expectation) of the distribution.

Method pdfSquared2Norm()

The squared 2-norm of the pdf is defined by

\int_a^b (f_X(u))^2 du

where X is the Distribution, f_X is its pdf and a, b are the distribution support limits.

Arguments
x

(numeric(1))
Amount to shift the result.

upper

(numeric(1))
Upper limit of the integral.

Method skewness()

The skewness of a distribution is defined by the third standardised moment,

sk_X = E_X[((x - μ)/σ)^3]

where E_X is the expectation of distribution X, μ is the mean of the distribution and σ is the standard deviation of the distribution.

Arguments
deep

Whether to make a deep clone.

distr6 documentation built on Oct. 7, 2021, 1:09 a.m.