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.14.tar.gz (101.1 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.14-py3-none-any.whl (124.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycircstat2-0.1.14.tar.gz
  • Upload date:
  • Size: 101.1 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.14.tar.gz
Algorithm Hash digest
SHA256 102af16a8513ce8a6d4876244c96fc6b639500a43f5eb1cdf9386a6231251173
MD5 305296ec3f67c1803a4f942dd3fdfbd0
BLAKE2b-256 4061820ab771fe347677ad9e3eb38d2c1641add42aa069c706954f22f7715adc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycircstat2-0.1.14-py3-none-any.whl
  • Upload date:
  • Size: 124.4 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.14-py3-none-any.whl
Algorithm Hash digest
SHA256 a22891a485999313c5c30f6f1dd1f703c7ecd51059cd91b36935e663e3a6d178
MD5 c707de2e937af66179166da9a27c005f
BLAKE2b-256 3143df9320f71ca82f286ea0ee22a19f2705bc4bbb135014f503f0e1b2f54f33

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