Namespace: Entropy

Entropy

Entropy operations.

Author:
  • <p>n1474335 [n1474335@gmail.com]</p>
License:
  • Apache-2.0
Source:

Members


<static, constant> CHUNK_SIZE

Default Value:
  • 1000
Source:

<static, constant> FREQ_ZEROS

Source:

Methods


<static> run_entropy(input, args)

Entropy operation.

Parameters:
Name Type Description
input byte_array
args Array.<Object>
Source:
Returns:
Type
html

<static> run_freq_distrib(input, args)

Frequency distribution operation.

Parameters:
Name Type Description
input byte_array
args Array.<Object>
Source:
Returns:
Type
html

<private, static> _calc_entropy(data)

Calculates the Shannon entropy for a given chunk of data.

Parameters:
Name Type Description
data byte_array
Source:
Returns:
Type
number