Skip to contents

I've digged out the source codes to translate from Python to R.

Usage

matched_filter(template, data, psd = NULL, fl = NULL, fu = NULL, h.norm = NULL)

Arguments

template

A `ts` object of waveform template.

data

A `ts` object of data.

psd

A `fs` object of PSD.

fl

A numeric. Lower frequency cutoff.

fu

A numeric. Upper frequency cutoff.

h.norm

A custom normalization factor.

Value

A list containing: `snr.ts`, `snr.fs`, and `norm`, where SNR in `ts` and `fs` object and the normalization factor, respectively. Final SNR will be norm*abs(snr.ts)