utils.interpolate_asd#
Back to Module page
Summary#
get log-log interpolant of ASD with old_f[0] >= 0,
Signature#
def interpolate_asd(old_f, old_asd, log_in = False)
Name |
Type |
Default |
Description |
|---|---|---|---|
|
(ordered) array of rfft frequencies >= 0 (in Hz) where ASD is saved |
||
|
len(old_f) array with ASD = sqrt(PSD) |
||
|
False |
bool indicating if old_asd is already a log (note old_f is never log) |
Output variables#
Return annotation |
Docstring type |
Description |
|---|---|---|
|
Function that takes frequencies (Hz) & returns ASD at those frequencies |
Docstring#
get log-log interpolant of ASD with old_f[0] >= 0,
:param old_f: (ordered) array of rfft frequencies >= 0 (in Hz) where ASD is saved
:param old_asd: len(old_f) array with ASD = sqrt(PSD)
:param log_in: bool indicating if old_asd is already a log (note old_f is never log)
:return: Function that takes frequencies (Hz) & returns ASD at those frequencies