checkEmptyBins | R Documentation |
checkEmptyBins
The method checking for empty bins in a distribution, i.e. if two cdf consecutive
values are equal. In that case a probability value of 1e-7
is
assigned to the empty bin and the cdf is recomputed. This methods is useful
for numerical reasons.
checkEmptyBins(object)
## S4 method for signature 'distributionH'
checkEmptyBins(object)
object |
a |
A distributionH
object without empty bins
Antonio Irpino
## ---- A mydist distribution with an empty bin i.e. two consecutive values of p are equal----
mydist <- distributionH(x = c(1, 2, 3, 10), p = c(0, 0.5, 0.5, 1))
## ---- Checks for empty byns and returns the newdist object without empty bins ----
newdist <- checkEmptyBins(mydist)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.