Description Usage Arguments Examples
View source: R/entropyFunction.r
The entropy of a bitstring (ex: 1010111000) is calculated.
1 | entropyFunction(bitString)
|
x |
- A vector of 0's and 1's. |
1 2 3 4 5 6 | entropyFunction(c(1,0,0,0,1,0,0,0,0,0,0,0,0))
> 0.6193822
entropyFunction(c(1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0))
> 1
entropyFunction(c(1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1))
> 0
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.