在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):garydoranjr/pyemd开源软件地址(OpenSource Url):https://github.com/garydoranjr/pyemd开源编程语言(OpenSource Language):C 74.1%开源软件介绍(OpenSource Introduction):PyEMD: Earth Mover's Distance for Python (and MATLAB)by Gary Doran ([email protected]) OverviewAn efficient, accurate, easy-to-use EMD implementation in C with Python wrapper. New bonus MATLAB wrapper also included. InstallationPython: this package can be installed in two ways (the easy way):
or by running the setup file manually
Note the code requires Python 2 (Python 3 is not supported) and depends on the
MATLAB: clone the repository and After the MEX file has compiled, add the Support in Other LanguagesRust: Giovanni Cherubin has written a wrapper for the Rust language here: https://github.com/gchers/rust-emd Why?Several Python wrappers for C-based EMD implementations already exist, so why is another one necessary? There are two popular alternative approaches, each with their limitations:
PyEMD is a more "Pythonic" EMD implementation than other wrappers. Only the minimal amount of computation is done in C (the core transportation algorithm). This means that the distance computation is done in Python using the efficient SciPy library, and a custom, precomputed distance matrix can be easily provided. UsageThe EMD implementation can be used simply in Python as:
where If the sample is weighted, the weights can be specified with optional
By default, the Euclidean distance between points is used. However, an optional
argument Finally, PyEMD can also return the flows between the two samples that are used
to compute the distance. If the See the docstring for a more formal description of the functionality. In MATLAB, the functionality is essentially the same; see the help for details. CitingIf you have used PyEMD for your research and would like to cite it, you can use the following BibTeX entry:
Questions and IssuesIf you find any bugs or have any questions about this code, please create an issue on GitHub, or contact Gary Doran at [email protected]. Of course, I cannot guarantee any support for this software. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论