Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,9 +0,0 @@
|
|||
function entropy ($string) {
|
||||
$n = $string.Length
|
||||
$string.ToCharArray() | group | foreach{
|
||||
$p = $_.Count/$n
|
||||
$i = [Math]::Log($p,2)
|
||||
-$p*$i
|
||||
} | measure -Sum | foreach Sum
|
||||
}
|
||||
entropy "1223334444"
|
||||
Loading…
Add table
Add a link
Reference in a new issue