Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A Python wrapper of the Phase Dispersion Minimization (PDM), which is a C code written by Stellingwerf.

License

NotificationsYou must be signed in to change notification settings

ckm3/Py-PDM

Repository files navigation

imageDocumentation StatusCIGitHub

A Python wrapper of the Phase Dispersion Minimization (PDM), which is aC code written by Stellingwerf.

Compared with other Python implementations, with the help of Cython, we can obtain a much faster PDM tool.

Example result

The red lines show the true frequency and its n times period.

Performance

Compared to thePure Python implementation of PDM ofPyAstronomy:

Comparison result

Installation

Before installing, make sure you have already installed the cython and numpy in your Python3 environment.

To install Py-PDM with pip:

pip install py-pdm

Alternatively you can install it manually:

git clone https://github.com/ckm3/Py-PDM.gitcd Py-PDMpython setup.py install

Usage

frompdmpyimportpdmfreq,theta=pdm(time,y_value,y_sigma,frequency_min,frequency_max,frequency_step,number_of_bins)

Please refer to thedocumentation to see in details.

Citing

If you find Py-PDM useful in your research, please cite the orginal paperStellingwerf, Astrophysical Journal, v224, p953, 1978 and add a footnote of this Github repository.

About

A Python wrapper of the Phase Dispersion Minimization (PDM), which is a C code written by Stellingwerf.

Topics

Resources

License

Stars

Watchers

Forks


[8]ページ先頭

©2009-2025 Movatter.jp