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.13.tar.gz (100.5 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.13-py3-none-any.whl (123.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pycircstat2-0.1.13.tar.gz
Algorithm Hash digest
SHA256 17bcd4b5b471ed55c0f382d0396dac199f3108cce78b4c63e57ef68a0294cb73
MD5 3df10b86dde8be939d7dcec1ee18a213
BLAKE2b-256 adfbdf734ed0f6365f2708f9ad2461daf1327e9d569040159d87d04489322f78

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pycircstat2-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 2645676505612b1307e09078ac5f85bec3b6363db6bd1d132cc2b6303b5484f6
MD5 607661cb48448f12fcf673e2485b626d
BLAKE2b-256 2020419ac658e9c9ab067baf3c5fb5c5dad4c46734ffda9cbeff468d56a552e8

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