Skip to main content

Circular statistcs with Python.

Project description

logo

PyCircStat2: Circular statistics with Python

PyPI version

A rework of pycircstat.

Key Features | Installlation | API Reference | Examples ( Books | Topics )

Key Features

  • One-Stop Circular Data Analysis Pipeline with Circular Class

    The Circular class simplifies circular data analysis by providing automatic data transformation, descriptive statistics, hypothesis testing, and visualization tools—all in one place.

    from pycircstat2 import Circular
    data = [30, 60, 90, 120, 150]
    circ = Circular(data, unit="degree")
    print(circ.summary())
    circ.plot(config={"rose": True, "mean": True})
    
  • Compatibility with Legacy APIs

    APIs for descriptive statistics and hypothesis testing follow the conventions established by the original circstat-matlab and pycircstat, ensuring ease of use for existing users.

  • Wide-Ranging Circular Distributions

    The package supports a variety of circular distributions, including but not limited to:

    • Symmetric distributions: Circular Uniform, Cardioid, Cartwright, Wrapped Normal, Wrapped Cauchy, von Mises (and its flat-top extension), and Jones-Pewsey.
    • Asymmetric distributions: Sine-skewed Jones-Pewsey, Asymmetric Extended Jones-Pewsey, Inverse Batschelet.

Also see the full feature checklist here.

Installation

To install the latest tagged version:

pip install pycircstat2

Or to install the development version, clone the repository and install it with pip install -e:

git clone https://github.com/circstat/pycircstat2
pip install -e pycircstat2

API Reference

The API reference is available here.

Example notebooks

In the notebooks below, we reproduce examples and figures from a few textbooks on circular statistics.

Books

And a few more examples on selective topics:

Topics

  1. Utils
  2. Descriptive Statistics
  3. Hypothesis Testing
  4. Circular Models
  5. Regression
  6. Clustering

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

pycircstat2-0.1.15.tar.gz (172.2 kB view details)

Uploaded Source

Built Distribution

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

pycircstat2-0.1.15-py3-none-any.whl (196.5 kB view details)

Uploaded Python 3

File details

Details for the file pycircstat2-0.1.15.tar.gz.

File metadata

  • Download URL: pycircstat2-0.1.15.tar.gz
  • Upload date:
  • Size: 172.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pycircstat2-0.1.15.tar.gz
Algorithm Hash digest
SHA256 c90e9f2af0e9e0f23dc31b7b22e2ad1aa498cba0a0327b30c61e96650e8652e0
MD5 4f4cdc46683a5a9e33895b0740632b10
BLAKE2b-256 4b1ee444b0ac76e69c2a17ae43001e6234bc91e144edeb13f3982991137b8fc5

See more details on using hashes here.

File details

Details for the file pycircstat2-0.1.15-py3-none-any.whl.

File metadata

  • Download URL: pycircstat2-0.1.15-py3-none-any.whl
  • Upload date:
  • Size: 196.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pycircstat2-0.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 55c40c44a13ce4685204587196988acdfdaa6fcfe5cbcdee4b212360b81c210d
MD5 ab23d995a323ff77555ca4f722805ffa
BLAKE2b-256 a0292590e470d6f79993ef3666bef0817ee61100ec256e1f33ed0e27a79547b3

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