| ic_center | R Documentation |
Calculates the entropy-weighted center of a numeric vector.
ic_center(x, method = c("hist", "kde"), alpha = NULL, ...)
x |
A numeric vector. |
method |
Density estimation method. |
alpha |
Power parameter for weights. |
... |
Additional arguments passed to density(). |
A single numeric value.
x <- c(rnorm(90, 0, 0.5), rnorm(10, 10, 2))
ic_center(x, method = "kde")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.