Skip to main content

Python 3 LPSD algorithm

Overview

This repository contains a Python 3 implementation of the LPSD algorithm. The implementation is similiar to the LPSD implementation in the Matlab package LTPDA. The core of the algorithm can be run as Python 3 or as (faster) C code. Both deliver the same results. To run the C core the file ltpda_dft.c has to be compiled to a shared library.

Installation

Install directly with pip:

pip install lpsd

Usage

Fully working examples can be found in /doc/examples.

With a DataFrame

Recommended interface, direct usage of a DataFrame

import pandas as pd
from lpsd import lpsd
# read time series
data = pd.read_csv("time_series.csv.gz", index_col=0)
# select column and calculate
spectrum = lpsd(data["column"])
# plot PSD
spectrum["psd"].plot(logx=True, logy=True)

Using numpy arrays

Use the traditional method lpsd_trad, which uses simple numpy arrays.

References

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lpsd-1.0.6.tar.gz (115.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lpsd-1.0.6-cp311-cp311-manylinux_2_36_x86_64.whl (116.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.36+ x86-64

File details

Details for the file lpsd-1.0.6.tar.gz.

File metadata

  • Download URL: lpsd-1.0.6.tar.gz
  • Upload date:
  • Size: 115.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.2 Linux/6.14.0-33-generic

File hashes

Hashes for lpsd-1.0.6.tar.gz
Algorithm Hash digest
SHA256 6e52c5dbda6d08f553f8071fde1a0499a7277d02109ba0de73b55e33f1af700c
MD5 b8b136519647c795818bc2930bb4e4a9
BLAKE2b-256 586d0218bdc4e4cc57be016a7622499ef29858b5234698ae4509b16c3d1f991e

See more details on using hashes here.

File details

Details for the file lpsd-1.0.6-cp311-cp311-manylinux_2_36_x86_64.whl.

File metadata

  • Download URL: lpsd-1.0.6-cp311-cp311-manylinux_2_36_x86_64.whl
  • Upload date:
  • Size: 116.1 kB
  • Tags: CPython 3.11, manylinux: glibc 2.36+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.2 Linux/6.14.0-33-generic

File hashes

Hashes for lpsd-1.0.6-cp311-cp311-manylinux_2_36_x86_64.whl
Algorithm Hash digest
SHA256 df017049a7a65adac96d1a488ca0c6801da349c803fb9cb5a8d2ceeab58abd97
MD5 8253bb77e823d2b984bb6119300ef85e
BLAKE2b-256 180732ad5d65ce273bcfa50816666e9d162146d26fc2d9bd01b37d1da3331de9

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.6 This release

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page