Zero Latency Whitening Utilities
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zlw-0.0.1.tar.gz.
File metadata
- Download URL: zlw-0.0.1.tar.gz
- Upload date:
- Size: 125.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bb3a2e816a36bb43da00b62bf65d4126c96066238f58e2433a143dee9d0cfcd
|
|
| MD5 |
ca37eeae7a6ab0fa85a2ad5c2d0f709a
|
|
| BLAKE2b-256 |
485d73b8631c0649bbacba5cb0206b4f070f73f7925ef7baea7016951b36f554
|
File details
Details for the file zlw-0.0.1-py3-none-any.whl.
File metadata
- Download URL: zlw-0.0.1-py3-none-any.whl
- Upload date:
- Size: 103.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73077e0efa1363544c88c890b5663718a4c3b61c4cbea1be5ead8da58bf5d91e
|
|
| MD5 |
47f26a6cd06d87c960a55bb2030162d4
|
|
| BLAKE2b-256 |
acf9439eaa734140c99c86f06761b9c0b3ecfbea9179dd4f4ebc6fc78547abc0
|