Class ShannonEntropy
java.lang.Object
org.graylog.plugins.pipelineprocessor.functions.strings.ShannonEntropy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
calculateForChars
(String input) Calculate Shannon Entropy for the characters in a string.
-
Constructor Details
-
ShannonEntropy
public ShannonEntropy()
-
-
Method Details
-
calculateForChars
Calculate Shannon Entropy for the characters in a string.- Parameters:
input
- The input string.- Returns:
- a double representing the entropy.
-