spectral_unmixing.mutual_information_1dο
- spectral_unmixing.mutual_information_1d(x, y, bins=64)[source]ο
Estimate mutual information between two 1D intensity arrays using a 2D histogram.
- Parameters:
x, y (array-like) β One-dimensional or flattenable intensity arrays of equal length.
bins (int, optional) β Number of histogram bins used for the joint density estimate. Must be at least
2.
- Return type:
float- Returns:
float β Estimated mutual information in natural-log units.
Notes
This is a histogram-based estimator intended for relative comparisons during alpha optimization, not for bias-corrected information-theoretic inference.