Histogram-class {rebmix}R Documentation

Class "Histogram"

Description

Object of class Histogram.

Objects from the Class

Objects can be created by calls of the form new("Histogram", ...). Accessor methods for the slots are a.Y(x = NULL), a.K(x = NULL), a.ymin(x = NULL), a.ymax(x = NULL), a.y0(x = NULL), a.h(x = NULL), a.n(x = NULL) and a.ns(x = NULL).

Slots

Y:

a data frame of size v×(d+1)v \times (d + 1) containing d-dimensional histogram. Each of the first dd columns represents one random variable and contains bin means yˉ1,,yˉv\bar{\bm{y}}_{1}, \ldots, \bar{\bm{y}}_{v}. Column d+1d + 1 contains frequencies k1,,kvk_{1}, \ldots, k_{v}.

K:

an integer or a vector of length dd containing numbers of bins vv.

ymin:

a vector of length dd containing minimum observations.

ymax:

a vector of length dd containing maximum observations.

y0:

a vector of length dd containing origins.

h:

a vector of length dd containing bin widths.

n:

an integer containing total number nn of observations.

ns:

an integer containing number nsn_{\mathrm{s}} of samples.

Author(s)

Marko Nagode

Examples

Y <- as.data.frame(matrix(1.0, nrow = 8, ncol = 3))

hist <- new("Histogram", Y = Y, K = c(4, 2), ymin = c(2, 1), ymax = c(10, 8))

a.Y(hist)
a.K(hist)
a.ymin(hist)
a.ymax(hist)
a.y0(hist)
a.h(hist)
a.n(hist)
a.ns(hist)

# Multiplay Y[ , d + 1] by 0.1.

a.Y(hist) <- 0.1

[Package rebmix version 2.16.0 Index]