ic_center: Information-Dense Centroid

View source: R/ic_center.R

ic_centerR Documentation

Information-Dense Centroid

Description

Calculates the entropy-weighted center of a numeric vector.

Usage

ic_center(x, method = c("hist", "kde"), alpha = NULL, ...)

Arguments

x

A numeric vector.

method

Density estimation method.

alpha

Power parameter for weights.

...

Additional arguments passed to density().

Value

A single numeric value.

Examples

x <- c(rnorm(90, 0, 0.5), rnorm(10, 10, 2))
ic_center(x, method = "kde")

infocentroid documentation built on Nov. 9, 2026, 1:10 a.m.