Skip to content

Instantly share code, notes, and snippets.

View mbejger's full-sized avatar

Michał Bejger mbejger

View GitHub Profile
@mbejger
mbejger / snr-periodic.py
Created October 13, 2016 07:57
Matched filter and signal-to-noise for a periodic template
"""
Plot white noise with added sinusoidal signal
"""
import numpy as np
import matplotlib.pyplot as plt
import sys
import h5py
fs = 4096 # sampling rate [Hz]
T = 4 # duration [s]