Calculate entropy from a probability distribution of a random variable.
1 |
prob_dist |
a vector corresponding to a random variable. |
base |
base for the logarithm used in the entropy calculation |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.