Skip to main content

CalculateEntropy

This Script is part of the Common Scripts Pack.#

Calculates the entropy for the given data.

Script Data#


NameDescription
Script Typepython3
Tagsentropy
Cortex XSOAR Version0.0.0

Inputs#


Argument NameDescription
dataThe data for which to calculate entropy.
minimum_entropyThe minimum entropy value. Default is 0.

Outputs#


PathDescriptionType
EntropyResult.checked_valueThe given value (data).String
EntropyResult.entropyThe entropy score.Number

Script Example#

!CalculateEntropy data=abcd

Context Example#

{
"EntropyResult": {
"checked_value": "abcd",
"entropy": 2
}
}

Human Readable Output#

Entropy results#

Checked ValueEntropy
abcd2.0