Skip to content

Commit 680a9d0

Browse files
committed
Merge branch 'release/0.2.0'
2 parents 394b6b3 + 26ccc18 commit 680a9d0

File tree

6 files changed

+421
-1358
lines changed

6 files changed

+421
-1358
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ build
66
*.pyc
77
dist
88
pyemd.egg-info
9+
pyemd/emd.cpp

README.rst

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ PyEMD: Fast EMD for Python
77
PyEMD is a Python wrapper for `Ofir Pele and Michael Werman's implementation
88
<http://www.seas.upenn.edu/~ofirpele/FastEMD/code/>`_ of the `Earth Mover's
99
Distance <http://en.wikipedia.org/wiki/Earth_mover%27s_distance>`_ that allows
10-
it to be used with NumPy.
10+
it to be used with NumPy. **If you use this code, please cite the papers listed
11+
at the end of this document.**
1112

12-
This wrapper does not expose the full functionality of that library; it can
13-
only used be with the ``np.float`` data type, and with a symmetric distance
14-
matrix that represents a true metric. See the documentation for the original
15-
Pele and Werman library for the other options it provides.
13+
This wrapper does not expose the full functionality of the underlying
14+
implementation; it can only used be with the ``np.float`` data type, and with a
15+
symmetric distance matrix that represents a true metric. See the documentation
16+
for the original Pele and Werman library for the other options it provides.
1617

1718
Installation
1819
~~~~~~~~~~~~
@@ -68,9 +69,9 @@ Limitations and Caveats
6869
wrapper only instantiates the template with ``double`` (Cython converts
6970
``np.float`` to ``double``). If there's demand, I can add support for other
7071
types.
71-
- The original C++ functions have optional parameters ``extra_mass_penalty``
72-
and ``F`` (for flows); this wrapper does not expose those parameters. See
73-
the documentation in **pyemd/lib/emd_hat.hpp**.
72+
- The original C++ functions have an optional parameter ``F`` to
73+
return the flow, which is not exposed by this wrapper. See the
74+
documentation in **pyemd/lib/emd_hat.hpp**.
7475

7576

7677
Contributing

pyemd/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"""
5151

5252
__title__ = 'pyemd'
53-
__version__ = '0.1.1'
53+
__version__ = '0.2.0'
5454
__author__ = 'Will Mayner'
5555
__author_email__ = 'wmayner@gmail.com'
5656
__author_website__ = 'http://willmayner.com'

0 commit comments

Comments
 (0)