IntervalData-class {IntervalQuestionStat}R Documentation

S4 class representing a single interval

Description

Each nonempty compact real interval KK 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=[infK,supK]=[mid Kspr K],K = [\inf K,\sup K]=[\mathrm{mid}~K \mp \mathrm{spr}~K],

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

mid K=supK+infK2andspr K=supKinfK2.\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]