Skip to main content

Radius parameters of simplices in Delaunay-Cech filtration of 2D and 3D points.

Project description

Delaunay-Čech filtrations

This package provides functions for computing the smallest enclosing ball radius (miniball radius) of sets of three points in two and three dimensions and four points in three dimensions.

These are used to produce Delaunay-Čech filtrations, which can be used to compute Čech persistence diagrams of points in two and three dimensions.

Wrappers are provided for computing Čech persistence diagrams with gudhi for points in two and three dimensional space.

Installation

The setuptools, numpy, scipy, and gudhi Python packages are prerequisites for using this package.

The last one can be installed with conda running

>>> conda install -c conda-forge gudhi

You'll also need pybind11, cmake and a C++ compiler in order to install this package. It is recommended to install both pybind11 and cmake via conda.

>>> conda install -c anaconda cmake
>>> conda install -c conda-forge pybind11

Finally run the following command to build and install this Python package

>>> pip install delcechfiltr

If the command above fails to build this package, tehn you might want to clone this repository to a directory delcechfiltr/ on your computer and run

>>> cd /<path>/<to>/<cloned>/<repo>/delcechfiltr/
>>> python setup.py install

which outputs more information on the errors causing the build to fail.

Windows. After installing conda, run the above commands within an Anaconda prompt. For the C++ compiler install Visual Studio community.

Basic usage

import numpy as np
import delcechfiltr.dgms

n, d = 20, 3
np.random.seed(0)
pts = np.random.rand(n, d)

dgm_H0_cech1, dgm_H1_cech1                        = delcechfiltr.dgms.cech(pts, persistence_dim_max=False)
dgm_H0_cech2, dgm_H1_cech2, dgm_H2_cech2          = delcechfiltr.dgms.cech(pts, persistence_dim_max=True)
dgm_H0_delcech1, dgm_H1_delcech1                  = delcechfiltr.dgms.delcech_3D(pts, persistence_dim_max=False)
dgm_H0_delcech2, dgm_H1_delcech2, dgm_H2_delcech2 = delcechfiltr.dgms.delcech_3D(pts, persistence_dim_max=True)

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

delcechfiltr-1.0.1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

delcechfiltr-1.0.1-cp38-cp38-win_amd64.whl (66.8 kB view details)

Uploaded CPython 3.8Windows x86-64

File details

Details for the file delcechfiltr-1.0.1.tar.gz.

File metadata

  • Download URL: delcechfiltr-1.0.1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

File hashes

Hashes for delcechfiltr-1.0.1.tar.gz
Algorithm Hash digest
SHA256 80cb6a6fdbc4850eecd3e0f1b460e2cbe4c05f82d8ba6a03ff57fc29811cf55d
MD5 ee8c659944d2c113a1bb134d5bf4d49c
BLAKE2b-256 42cd57f74571e402ce1430eeda717f814b3a9b4f3b71f14b62b04058c27cea25

See more details on using hashes here.

File details

Details for the file delcechfiltr-1.0.1-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: delcechfiltr-1.0.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 66.8 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

File hashes

Hashes for delcechfiltr-1.0.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f7486ab90bb3e0390f8dc941b2f2c929cff3771f36c9200717068c5e1d676330
MD5 fbee95ad6c7fdb003371316a198ea45d
BLAKE2b-256 a1e1c9a56ecb35b809dd109fae3c4e6433979f22719967e3f94cc774ea8c04e5

See more details on using hashes here.

Supported by

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