Histogram-class: Class '"Histogram"'

Histogram-classR 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 \times (d + 1) containing d-dimensional histogram. Each of the first d columns represents one random variable and contains bin means \bar{\bm{y}}_{1}, \ldots, \bar{\bm{y}}_{v}. Column d + 1 contains frequencies k_{1}, \ldots, k_{v}.

K:

an integer or a vector of length d containing numbers of bins v.

ymin:

a vector of length d containing minimum observations.

ymax:

a vector of length d containing maximum observations.

y0:

a vector of length d containing origins.

h:

a vector of length d containing bin widths.

n:

an integer containing total number n of observations.

ns:

an integer containing number n_{\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

rebmix documentation built on Feb. 9, 2024, 3:01 p.m.