Skip to contents

H = -sum_k p_k log2 p_k, in bits, with the nats conversion and the log2(K) ceiling alongside.

Usage

morie_geron_entropy_impurity(y)

Arguments

y

Vector of labels.

Value

List with entropy, entropy_nats, proportions, classes, counts, n_classes, max_possible, estimate, n.

Examples

if (morie_crypto_liboqs_available()) {
  V <- c(1, 2, 3, 4, 5, 6, 7, 8)
  morie_geron_entropy_impurity(V)
}