File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
packages/windows/data_stream/powershell_operational/elasticsearch/ingest_pipeline Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -338,6 +338,7 @@ processors:
338338 Entropy (0-20 bits) measures randomness; surprisal_sd measures distribution uniformity.
339339 if : ctx._temp?.script_block_no_signature != null
340340 source : |-
341+ // Entropy Variance from: https://github.com/elastic/toutoumomoma/blob/be287c9c0d0e435572e3889a6584199983c688f0/toutoumomoma.go#L326-L363.
341342 String script = ctx._temp.script_block_no_signature;
342343
343344 script = java.text.Normalizer.normalize(script, java.text.Normalizer.Form.NFC);
@@ -364,8 +365,6 @@ processors:
364365 pSum += p;
365366 double tmp = entropy;
366367 entropy = tmp + (p / pSum) * (l2p - tmp);
367-
368- // Reference: https://github.com/elastic/toutoumomoma/blob/be287c9c0d0e435572e3889a6584199983c688f0/toutoumomoma.go#L326-L363
369368 surprisalVar += p * (l2p - tmp) * (l2p - entropy);
370369 }
371370
You can’t perform that action at this time.
0 commit comments