Skip to main content

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

Metadata

Release files for pycircstat2 0.1.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pycircstat2 0.1.15
File Size Uploaded
pycircstat2-0.1.15.tar.gz 172.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pycircstat2 0.1.15
File Interpreter ABI Platform
pycircstat2-0.1.15-py3-none-any.whl Python 3 none any Details

Total release size: 368.7 kB

Release files / pycircstat2-0.1.15.tar.gz

Download URL pycircstat2-0.1.15.tar.gz
Size 172.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c90e9f2af0e9e0f23dc31b7b22e2ad1aa498cba0a0327b30c61e96650e8652e0
BLAKE2b-256 checksum
How to use checksums
4b1ee444b0ac76e69c2a17ae43001e6234bc91e144edeb13f3982991137b8fc5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / pycircstat2-0.1.15-py3-none-any.whl

Download URL pycircstat2-0.1.15-py3-none-any.whl
Size 196.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
55c40c44a13ce4685204587196988acdfdaa6fcfe5cbcdee4b212360b81c210d
BLAKE2b-256 checksum
How to use checksums
a0292590e470d6f79993ef3666bef0817ee61100ec256e1f33ed0e27a79547b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.1.15 This release

2 release files

0.1.14

2 release files

0.1.13

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page