OTHist | R Documentation |
Histogram
Just a generic class which contains two arguments, p (probability) and c (center of bins)
p
[vector] Vector of probability
c
[matrix] Vector of center of bins, with nrow = n_samples and ncol = n_features
bin_width
[vector or NULL] A vector of lengths of the cells discretizing R^numbers of variables. If NULL, it is estimating during the fit
bin_origin
[vector or NULL] Coordinate of lower corner of one cell. If NULL, c(0,...,0) is used
new()
Create a new OTHist object.
OTHist$new(p, c)
p
[vector] Vector of probability
c
[matrix] Vector of center of bins, with nrow = n_samples and ncol = n_features
A new 'OTHist' object.
clone()
The objects of this class are cloneable with this method.
OTHist$clone(deep = FALSE)
deep
Whether to make a deep clone.
## Build a random discrete probability distribution
p = stats::rnorm(100)
p = p / base::sum(p)
c = base::seq( -1 , 1 , length = 100 )
mu = OTHist$new( p , c )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.