data2hist {HistDAWass} | R Documentation |
From real data to distributionH.
Description
From real data to distributionH.
Usage
data2hist(
data,
algo = "histogram",
type = "combined",
qua = 10,
breaks = numeric(0),
epsilon = 0.01
)
Arguments
data |
a set of numeric values. |
algo |
(optional) a string. Default is "histogram", i.e. the function "histogram"
defined in the |
type |
(optional) a string. Default is "combined" and generates
a histogram having regularly spaced breaks (i.e., equi-width bins) and
irregularly spaced ones. The choice is done accordingly with the penalization method described in
|
qua |
a positive integer to provide if |
breaks |
a vector of values to provide if |
epsilon |
a number between 0 and 1 to provide if |
Value
A distributionH
object, i.e. a distribution.
See Also
histogram
function
Examples
data <- rnorm(n = 1000, mean = 2, sd = 3)
mydist <- data2hist(data)
plot(mydist)