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
containing d-dimensional histogram. Each of the first
columns represents one random variable and contains bin means
. Column
contains frequencies
.
K
:-
an integer or a vector of length
containing numbers of bins
.
ymin
:-
a vector of length
containing minimum observations.
ymax
:-
a vector of length
containing maximum observations.
y0
:-
a vector of length
containing origins.
h
:-
a vector of length
containing bin widths.
n
:-
an integer containing total number
of observations.
ns
:-
an integer containing number
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