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)
Name |
Type |
Default |
Description |
|---|---|---|---|
|
n_wf x len(fs) complex array with unwrapped phases of frequency domain waveforms (note it needs to be a 2d array) |
||
|
len(fs) array with average phase evolution \* weights |
||
|
n_basis x len(fs) array with orthonormal basis shapes |
||
|
Array of size len(fs) with inner product weights to convert wfs into basis |
||
|
Array with frequencies (Hz) |
Output variables#
Return annotation |
Docstring type |
Description |
|---|---|---|
|
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