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)
Input variables#

Name

Type

Default

Description

old_f

(ordered) array of rfft frequencies >= 0 (in Hz) where ASD is saved

old_asd

len(old_f) array with ASD = sqrt(PSD)

log_in

False

bool indicating if old_asd is already a log (note old_f is never log)

Output variables#

Return annotation

Docstring type

Description

None

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