Estimate Shannon entropy from a numeric vector, with optional
bit-depth discretisation (as used internally by kuramoto()).
Examples
x <- sample(1:4, 100, replace = TRUE)
shannon_entropy(x)
#> [1] 1.984508
Estimate Shannon entropy from a numeric vector, with optional
bit-depth discretisation (as used internally by kuramoto()).
x <- sample(1:4, 100, replace = TRUE)
shannon_entropy(x)
#> [1] 1.984508