IntervalData-class {IntervalQuestionStat}R Documentation

S4 class representing a single interval

Description

Each nonempty compact real interval K can be alternatively characterized in terms of either its lower and upper bounds (also called infimum and supremum, respectively) through what is usually known as its inf/sup-characterization or either its mid-point and spread (also named center and radius, respectively) by means of its mid/spr-characterization as follows,

K = [\inf K,\sup K]=[\mathrm{mid}~K \mp \mathrm{spr}~K],

where both \inf K \leq \sup K and \mathrm{spr}~K \geq 0 conditions are fulfilled. The existing equivalence relation between these two characterizations is given by the following two equations:

\mathrm{mid}~K = \frac{\sup K + \inf K}{2} \qquad \mathrm{and} \qquad \mathrm{spr}~K = \frac{\sup K - \inf K}{2}.

Slots

mid:

A single real number saved as a unique numeric value specifying the mid-point of the interval.

spr:

A single real number saved as a unique numeric value specifying the spread of the interval.

Author(s)

José García-García garciagarjose@uniovi.es

See Also

Objects of IntervalData class should be created through IntervalData() function. Besides IntervalData class, the IntervalQuestionStat package also incorporates IntervalList-class and IntervalMatrix-class for dealing with interval-valued data in R environment.

Examples

showClass("IntervalData")
showMethods(classes = "IntervalData")

[Package IntervalQuestionStat version 0.2.0 Index]