OrdinalMIEstimator#
- class infomeasure.estimators.mutual_information.OrdinalMIEstimator(*data, cond=None, embedding_dim: int = None, step_size: int = 1, stable: bool = False, offset: int = 0, base: int | float | str = 'e', **kwargs)[source]
Bases:
BaseOrdinalMIEstimator,MutualInformationEstimatorEstimator for the Ordinal mutual information.
- Attributes:
- *dataarray_like,
shape(n_samples,) The data used to estimate the mutual information. You can pass an arbitrary number of data arrays as positional arguments.
- embedding_dim
int The size of the permutation patterns.
- offset
int,optional Number of positions to shift the data arrays relative to each other. Delay/lag/shift between the variables. Default is no shift.
- *symbolsarray_like,
shape(n_samples,) The symbolized data used to estimate the mutual information.
- *dataarray_like,
- Raises:
-
ValueErrorIf the
embedding_dimis negative or not an integer.ValueErrorIf
offsetandembedding_dimare such that the data is too small.
Notes
The ordinality will be determined via
numpy.argsort(). There is nonormalizeoption, as this would not influence the order of the data.If
embedding_dimis set to 1, the mutual information is always 0.