template_bank_generator_HM.transform_basis#

Back to Module page

Summary#

Returns components of waveforms in the given basis

Signature#

def transform_basis(phases, avg_phase_evolution, basis, wts, fs)
Input variables#

Name

Type

Default

Description

phases

n_wf x len(fs) complex array with unwrapped phases of frequency domain waveforms (note it needs to be a 2d array)

avg_phase_evolution

len(fs) array with average phase evolution \* weights

basis

n_basis x len(fs) array with orthonormal basis shapes

wts

Array of size len(fs) with inner product weights to convert wfs into basis

fs

Array with frequencies (Hz)

Output variables#

Return annotation

Docstring type

Description

None

n_wf x n_basis array with components of each waveform along each basis element

Docstring#

Returns components of waveforms in the given basis
:param phases:
    n_wf x len(fs) complex array with unwrapped phases of
    frequency domain waveforms (note it needs to be a 2d array)
:param avg_phase_evolution:
    len(fs) array with average phase evolution * weights
:param basis: n_basis x len(fs) array with orthonormal basis shapes
:param wts:
    Array of size len(fs) with inner product weights to convert
    wfs into basis
:param fs: Array with frequencies (Hz)
:return:
    n_wf x n_basis array with components of each waveform along each basis
    element