Skip to main content

Zero Latency Whitening Utilities

Reason this release was yanked:

incorrect test coverage

Project description

zlw — Zero‑Latency Whitening utilities

zlw is a small, focused package that provides zero‑latency whitening utilities for gravitational‑wave data analysis. It includes:

  • Whitening filter utilities
    • Minimum‑phase, zero‑latency whitening filters and helpers
    • Supporting Fourier/window helpers for stable, real‑time responses
  • MP–MP scheme PSD drift correction terms
    • Utilities to compute first‑ and second‑order timing and phase correction terms
    • Tools to account for slow PSD mismatches between template and data

Where things live:

  • zlw.kernels: minimum‑phase whitening filter construction and frequency‑response utilities
  • zlw.fourier, zlw.window: helpers used by the whitening filters
  • zlw.corrections: MP–MP scheme PSD drift correction terms (class MPMPCorrection)
  • zlw/tests: basic tests (e.g., tests/test_kernels.py)
  • zlw/src/zlw/bin: small simulation/QA scripts

Quick examples

  • Whitening filter

    from zlw.kernels import MPWhiteningFilter

    psd: one‑sided PSD array (Hz^-1), fs: sampling rate (Hz), n_fft: FFT length

    wf = MPWhiteningFilter(psd, fs, n_fft) Wf = wf.frequency_response() # one‑sided frequency response (complex for min‑phase)

  • MP–MP correction terms

    import numpy as np from zlw.corrections import MPMPCorrection

    freqs: one‑sided frequency grid; psd1: data PSD; psd2: template PSD; htilde: template FFT

    corr = MPMPCorrection(freqs=freqs, psd1=psd1, psd2=psd2, htilde=htilde, fs=fs)

    Simple first‑order corrections

    dt1, dphi1 = corr.simplified_correction()

    Or the full second‑order set (includes cross terms)

    (dt1, dphi1), (dt2, dphi2) = corr.full_correction()

Notes

  • “Zero‑latency” refers to the use of minimum‑phase whitening filters so that the whitening operation does not introduce group delay in the time domain.
  • The MP–MP correction utilities follow the perturbative scheme that expands about the ratio of PSDs, providing drift terms for coalescence time and phase when the whitening filters differ slightly.

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

zlw-0.1.0.tar.gz (49.3 kB view details)

Uploaded Source

Built Distribution

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

zlw-0.1.0-py3-none-any.whl (39.9 kB view details)

Uploaded Python 3

File details

Details for the file zlw-0.1.0.tar.gz.

File metadata

  • Download URL: zlw-0.1.0.tar.gz
  • Upload date:
  • Size: 49.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.12

File hashes

Hashes for zlw-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c1a595cf83c43322b6472eff6932ec3dbefa0c4438e1cce48344484b20eed4a5
MD5 bf9f783b8c303d01ff94e6f627400ef4
BLAKE2b-256 97fcd8b2ae62682655cf1d4745b46307e0e7a1dd26181f95e8989d9508f3f840

See more details on using hashes here.

File details

Details for the file zlw-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: zlw-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 39.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.12

File hashes

Hashes for zlw-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0249aa74a0f5685355ee18f0c096896fa217a22de1566d04c40daa3148146d97
MD5 83938065fa2b6ae1747b967433f47265
BLAKE2b-256 38e81450c81c882b9ab9be910d168bab669e3141c21ed915b6507582ec6d55be

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