Objects from the Class
Objects can be created by calls of the form Chisq(df, ncp)
.
This object is a chi-squared distribution.Slots
img
- Object of class
"Reals"
:
The space of the image of this distribution has got dimension 1 and the name "Real Space". param
- Object of class
"ChisqParameter"
:
the parameter of this distribution (df and ncp), declared at its instantiation r
- Object of class
"function"
:
generates random numbers (calls function rchisq) d
- Object of class
"function"
:
density function (calls function dchisq) p
- Object of class
"function"
:
cumulative function (calls function pchisq) q
- Object of class
"function"
:
inverse of the cumulative function (calls function qchisq) .withArith
- logical: used internally to issue warnings as to
interpretation of arithmetics
.withSim
- logical: used internally to issue warnings as to
accuracy
.logExact
- logical: used internally to flag the case where
there are explicit formulae for the log version of density, cdf, and
quantile function
.lowerExact
- logical: used internally to flag the case where
there are explicit formulae for the lower tail version of cdf and quantile
function
Symmetry
- object of class
"DistributionSymmetry"
;
used internally to avoid unnecessary calculations.
Extends
Class "ExpOrGammaOrChisq"
, directly.
Class "AbscontDistribution"
, by class "ExpOrGammaOrChisq"
.
Class "UnivariateDistribution"
, by class "AbscontDistribution"
.
Class "Distribution"
, by class "UnivariateDistribution"
.Is-Relations
By means of setIs
, R ``knows'' that a distribution object obj
of class "Chisq"
with non-centrality 0 also is
a Gamma distribution with parameters shape = df(obj)/2, scale = 2
.Methods
- initialize
signature(.Object = "Chisq")
: initialize method - df
signature(object = "Chisq")
:
returns the slot df of the parameter of the distribution - df<-
signature(object = "Chisq")
:
modifies the slot df of the parameter of the distribution - ncp
signature(object = "Chisq")
:
returns the slot ncp of the parameter of the distribution - ncp<-
signature(object = "Chisq")
:
modifies the slot ncp of the parameter of the distribution - +
signature(e1 = "Chisq", e2 = "Chisq")
:
For the chi-squared distribution we use its closedness under convolutions.