template_bank_generator_HM.upsample_lwfs#
Back to Module page
Summary#
Upsample given lwfs to an output frequency grid Note: Amplitudes are linearly interpolated, with zeros outside the range Pad phases with edge values to avoid discontinuities at the edges
Signature#
def upsample_lwfs(lwfs, fs_in, fs_out, phase_only = False)
Name |
Type |
Default |
Description |
|---|---|---|---|
|
… x len(fs_in) array with log of waveforms in frequency domain (make sure to pass unwrapped phase) |
||
|
Array of size(fs_in) with frequencies |
||
|
Array of size(fs_out) with frequencies |
||
|
False |
Flag indicating whether to compute and return only the phases |
Output variables#
Return annotation |
Docstring type |
Description |
|---|---|---|
|
… x len(fs_out) array with log of upsampled waveforms (phases if phase_only is True) |
Docstring#
Upsample given lwfs to an output frequency grid
Note: Amplitudes are linearly interpolated, with zeros outside the range
Pad phases with edge values to avoid discontinuities at the edges
:param lwfs:
... x len(fs_in) array with log of waveforms in frequency domain
(make sure to pass unwrapped phase)
:param fs_in: Array of size(fs_in) with frequencies
:param fs_out: Array of size(fs_out) with frequencies
:param phase_only:
Flag indicating whether to compute and return only the phases
:return:
... x len(fs_out) array with log of upsampled waveforms
(phases if phase_only is True)