Skip to content

petercombs/python-emd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Earth Mover's Distance in Python

This is a Python wrapper around Rubner's Earth Mover's Distance implementation (http://ai.stanford.edu/~rubner/emd/default.htm).

Example Usage

>>> import emd
>>> emd.emd(range(5), range(5), [0, 1, 0, 0, 0], [0, 0, 0, 0, 1])
3.0

Installation

sudo python setup.py install

NB: The module has only been tested on Linux and doesn't appear to be working on Windows. I'll try to fix that soon.

References

http://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/RUBNER/emd.htm

About

Python wrapper around Yossi Rubner's Earth Mover's Distance implementation (http://ai.stanford.edu/~rubner/emd/default.htm)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 98.3%
  • Python 1.7%