template_bank_generator_HM.TemplateBank.gen_whitened_wfs_td#

Back to Class page

Summary#

Generates whitened and conditioned time-domain waveforms given basis coefficients, or input waveforms

Signature#

def gen_whitened_wfs_td(self, calpha = None, wfs_fd = None, orthogonalize = True, return_cov = False, **conditioning_kwargs)
Input variables#

Name

Type

Default

Description

calpha

None

n_wf x n_(basis elements needed) array with list of coefficients (can be vector for n_wf = 1). Defaults to the central waveform

wfs_fd

None

Frequency domain waveform(s) on self.fs_fft to whiten instead, using saved conditioning parameters (preferred over calpha) NOTE: wfs_fd should be linear free if you pass truncate=True

orthogonalize

True

Orthogonalizes the different mode wfs for calpha case

return_cov

False

Returns the covariance matrix between mode wfs

\*\*conditioning_kwargs

If known, pass conditioning parameters (useful when whitening different waveforms), defaults to those in the bank Can use multiple normfacs if needed

Output variables#

Return annotation

Docstring type

Description

None

n_wf x n_modes x fftsize array of whitened TD waveforms (can be 2D for n_wf=1)

Docstring#

Generates whitened and conditioned time-domain waveforms given basis
coefficients, or input waveforms
:param calpha:
    n_wf x n_(basis elements needed) array with list of coefficients
    (can be vector for n_wf = 1). Defaults to the central waveform
:param wfs_fd:
    Frequency domain waveform(s) on self.fs_fft to whiten instead,
    using saved conditioning parameters (preferred over calpha)
    NOTE: wfs_fd should be linear free if you pass truncate=True
:param conditioning_kwargs:
    If known, pass conditioning parameters (useful when whitening
    different waveforms), defaults to those in the bank
    Can use multiple normfacs if needed
:param orthogonalize: Orthogonalizes the different mode wfs for calpha case
:param return_cov: Returns the covariance matrix between mode wfs
:return: n_wf x n_modes x fftsize array of whitened TD waveforms
         (can be 2D for n_wf=1)