estimator#
- infomeasure.estimator(*data, cond=None, measure: str = None, approach: str = None, step_size: int = 1, prop_time: int = 0, src_hist_len: int = 1, dest_hist_len: int = 1, cond_hist_len: int = 1, **kwargs: any) EstimatorType[source]#
Get an estimator for a specific measure.
This function provides a simple interface to get an
Estimatorfor a specific measure.If you are only interested in the global result, use the functional interfaces:
Estimators available:
- Entropy:
discrete:Discrete entropy estimator.kernel:Kernel entropy estimator.[
metric,kl]:Kozachenko-Leonenko entropy estimator.renyi:Renyi entropy estimator.[
ordinal,symbolic,permutation]:Ordinal / Permutation entropy estimator.tsallis:Tsallis entropy estimator.
- Mutual Information:
discrete:Discrete mutual information estimator.[
metric,ksg]:Kraskov-Stoegbauer-Grassberger mutual information estimator.[
ordinal,symbolic,permutation]:Ordinal mutual information estimator.
- Transfer Entropy:
discrete:Discrete transfer entropy estimator.[
metric,ksg]:Kraskov-Stoegbauer-Grassberger transfer entropy estimator.[
ordinal,symbolic,permutation]:Ordinal transfer entropy estimator.tsallis:Tsallis transfer entropy estimator.
- Parameters:
- *data
The data used to estimate the measure. For entropy: a single array-like data. A tuple of data for joint entropy. For mutual information: arbitrary number of array-like data. For transfer entropy: two array-like data. Source and destination.
- condarray_like,
optional Only if the measure is conditional transfer entropy.
- measure
str The measure to estimate. Options:
entropy,mutual_information,transfer_entropy,conditional_mutual_informationconditional_transfer_entropy; aliases:h,mi,te,cmi,cte.- approach
str The name of the estimator to use. Find the available estimators in the docstring of this function.
- *args: tuple
Additional arguments to pass to the estimator.
- **kwargs: dict
Additional keyword arguments to pass to the estimator.
- Returns:
EstimatorThe estimator instance.
- Raises:
ValueErrorIf the measure is not recognized.