-
Notifications
You must be signed in to change notification settings - Fork 0
API Reference
Raphael Constantinis edited this page Jul 23, 2025
·
1 revision
This page lists the main public classes, functions, and key parameters in the entropic_measurement library. For each function/class, default values and code examples are provided when available.
- Description: Computes the Shannon entropy of a discrete probability distribution.
-
Parameters:
-
data(array-like): input probability distribution -
base(int or str, default=2): log base ("e" for nats, 10 for dits) -
correction(str or callable, optional): bias correction method -
smoothing(str, optional): smoothing method ("laplace", "lidstone") -
alpha(float, optional): parameter for smoothing
-
- Returns: float
import entropic_measurement as em
entropy = em.shannon_entropy([0.5, 0.5]) # Returns 1.0- Description: Computes the Rényi entropy for a given order α.
-
Parameters: same as above, plus
alpha(order) - Returns: float
- Description: Computes Tsallis entropy of order q.
-
Parameters: same as above, plus
q - Returns: float
- Description: Calculates H(Y|X) — conditional entropy of Y given X.
- Description: Computes information shared between X and Y.
- Description: Kullback-Leibler divergence D_KL(P||Q).
-
EntropyProfile(data)— Convenience class for multi-measure analysis -
multidimensional_entropy(data2d, method='joint')— Joint/Marginal entropy
- Float for most entropy/information functions
- Dict for profile classes/results
- Numpy arrays for vectorized calculations
- For all parameters, see function docstrings (use Python's
help()). - Visit the Examples page for usage in workflows.