Skip to main content

A Lean Persistent Homology Library for Python

Project description

PyPI version Build Status codecov License: LGPL v3

Ripser

Ripser is now a Python class implemented in the Scikit-learn style. It is easy to install, only requires that you have Cython installed first. It is even easier to use.

For the C++ library, see Ripser/ripser.

Details from the old readme can be found here.

Setup

Installation requires Cython, and currently must be installed from source. An example of how to install is

pip install Cython
pip install Ripser

We use matplotlib for generating persistence diagrams

Usage

import numpy as np
from ripser import Rips
r = Rips()

data = np.random.random((100,2))
diagram = r.fit_transform(data)
r.plot(diagram)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ripser-0.2.1.tar.gz (64.1 kB view hashes)

Uploaded Source

Built Distribution

ripser-0.2.1-cp36-cp36m-macosx_10_12_x86_64.whl (53.6 kB view hashes)

Uploaded CPython 3.6m macOS 10.12+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page