Skip to main content

Implementations of different static and adaptive filtering techniques for the prediction of a correlated signal component from witness signals.

Project description

saftig – Static & Adaptive Filtering Techniques In Gravitational-wave-research

Test status Linting status Static type check status

Python implementations of different static and adaptive filtering techniques for the prediction of a correlated signal component from witness signals. The main goal is to provide a unified interface for the different filtering techniques.

Documentation

Features

Static:

  • Wiener Filter (WF)

Adaptive

  • Updating Wiener Fitler (UWF)
  • Least-Mean-Squares Filter (LMS)

Non-Linear:

  • Experimental non-linear LMS Filter variant (PolynomialLMS)

Install

From pypi: pip install saftig

From repository: pip install .

From repository (editable): make ie

Minimal example

>>> import saftig as sg
>>>
>>> # generate data
>>> n_channel = 2
>>> witness, target = sg.eval.TestDataGenerator([0.1]*n_channel).generate(int(1e5))
>>>
>>> # instantiate the filter and apply it
>>> filt = sg.filt.LMSFilter(n_filter=128, idx_target=0, n_channel=n_channel)
>>> filt.condition(witness, target)
>>> prediction = filt.apply(witness, target) # check on the data used for conditioning
>>>
>>> # success
>>> sg.eval.RMS(target-prediction) / sg.eval.RMS(prediction)
0.08221177645361015

Terminology

  • Witness signal w: One or multiple sensors that are used to make a prediction
  • Target signal s: The goal for the prediction

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

saftig-0.2.0.tar.gz (42.2 kB view details)

Uploaded Source

File details

Details for the file saftig-0.2.0.tar.gz.

File metadata

  • Download URL: saftig-0.2.0.tar.gz
  • Upload date:
  • Size: 42.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for saftig-0.2.0.tar.gz
Algorithm Hash digest
SHA256 bfc77ff5800cfdbb4852c2591b8804bbc477a0b0132348a9ecda2fe6c6f38123
MD5 8921de1d2b5a855aba93d9c360c9fafe
BLAKE2b-256 f670de02491d8558da6f2ea6d956cd42b198f63500b9574af9ce7400b4a5082a

See more details on using hashes here.

Provenance

The following attestation bundles were made for saftig-0.2.0.tar.gz:

Publisher: python-publish.yml on timbk/saftig

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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