Skip to main content

Quick and dirty introduction to usage

For an extensive description and explanation, see [arXiv:1506.01287](http://arxiv.org/abs/1506.01287).

Very briefly, this test decides whether a given time series can be interpolated by a periodic function with the same number of local extrema as the time series, where only local extrema with a prominence higher than a given error allowance σ are taken into account. The method also returns the period length. It is not intended for experimental but for simulated data.

The method has two parameters that can be chosen straightforwardly:

  • The maximum allowed period length τ<sub>max</sub>: Choose this parameter reasonably low to limit the runtime and to avoid period lengths that are close to the length of the time series. Unless you know what you are doing, τ<sub>max</sub> should at least be half the length of the time series.

  • The error allowance σ: Choose this parameter to correspond to the maximum expected absolute numerical error of your simulation, e.g., the maximum absolute integration error of an adaptive integrator.

Instructions for building

The following describes how to use this source depending on how you want to use it:

A. As a Python module

Build and install the module by running (for example)

`sh python3 setup.py install --user `

This generates a Python module called periodicitytest, which contains one function called periodicitytest. It can be loaded, e.g., as follows:

`python from periodicitytest import periodicitytest `

For further documentation, see periodicitytest’s docstring.

B. As a standalone program

Build the program by running

`sh python3 setup_C.py `

or

`sh python3 setup_C.py test `

if you want to run the tests.

This generates an executable called periodicitytest in the folder bin. It takes the maximum period length τ<sub>max</sub> and the error allowance σ as an argument. The time series is read from STDIN.

Take a look at standalone.c if you want to modify input and output.

C. As a C library

The central function is contained and documented in search.h. For input and output it requires simple datatypes defined in basics_standalone.h and interval.h. It needs to compiled with -DSTANDALONE. Several costly assertions can be avoided by compiling with -DNDEBUG.

Metadata

Release files for periodicitytest 0.0.0

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

Source distribution (sdist)

Source distribution for periodicitytest 0.0.0
File Size Uploaded
periodicitytest-0.0.0.tar.gz 17.3 kB Details

Release files / periodicitytest-0.0.0.tar.gz

Download URL periodicitytest-0.0.0.tar.gz
Size 17.3 kB
Tags Source
SHA-256 checksum
How to use checksums
cd841abdece13e1ccbd73afb35f5606885cf7f928de0ec08a53cfebacad59868
BLAKE2b-256 checksum
How to use checksums
7db6f2db60af672e7851f4a2e7f94eb749c2e2e6b8421f0c8803841a1e60bc6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.0 This release

1 release file

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