Skip to content

Mutual information between continuous variables in Python

Notifications You must be signed in to change notification settings

th86/pymutualinformation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mutual Information between Continuous Variables in Python

This is an implementation of the B-Spline-based algorithm. A nice R version was developed by Weiyi Cheng.

Usage

Have mutualinfo in the working folder, use the functions as follows.

import mutualinfo as m
m.mi2D([1,2,7], [0,0,1], 6, 3)

x and y must be numpy arrays in float32.

Prerequisites

Python 2.7 and 3 above

NumPy

Changelog

2025.09.19 add the attractor algorithm as function findAttractor

License

This project is licensed under the MIT license.

About

Mutual information between continuous variables in Python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages