Skip to content

Commit 79be204

Browse files
committed
Correction des légers problèmes liés à l'entropie
1 parent 829a9e6 commit 79be204

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def calculer_entropie(bytes: bytes) -> float:
3030
i += 1
3131

3232
proba_byte = 1 / i
33-
entropie += (proba_byte) * math.log(1/proba_byte, 8)
33+
entropie += (proba_byte) * math.log(1/proba_byte, 2)
3434
return entropie
3535

3636

0 commit comments

Comments
 (0)