Usage
solve_power(p, target_H, return_full = FALSE)
Arguments
- p
Initial distribution
- target_H
Desired entropy for the transformed distribution
- return_full
Return the full uniroot() output?
Value
Numeric value of the desired exponent
Examples
p = c(0.5, 0.3, 0.2)
solve_power(p, target_H = 1.0)
#> [1] 2.759038