module documentation
Functions for calibration using spectrum
Function | get |
Undocumented |
Function | get |
Reverse of get_spectrum |
Function | get |
Compute spectrum and show positive frequency space in SPL |
Function | get |
Undocumented |
Function | get |
Compute spectrum and show positive frequency space in SPL |
Function | normalise |
Normalises a given signal by its spectrum level within a defined frequency range. If |
Function | normalise |
Normalises a given signal by its spectrum level within a defined frequency range. If |
Function | spectrum |
Computes the spectrum level within a given frequency range |
Function | spectrum |
Undocumented |
Function | spectrum |
Undocumented |
Compute spectrum and show positive frequency space in SPL
Parameters | |
t:np.ndarray | time vector |
x:np.ndarray | signal |
getbool | whether to return the absolute value of the spectrum or not |
Returns | |
Tuple[ | Tuple(frequency vector, spectrum) |
Undocumented
Parameters | |
t:np.ndarray | Undocumented |
path:Annotated[ | Undocumented |
Returns | |
Tuple[ | Undocumented |
Compute spectrum and show positive frequency space in SPL
Parameters | |
x:np.ndarray | signal |
fs:Union[ | sampling frequency (only used for frequency vector) |
getbool | whether to return the absolute value of the spectrum or not |
Returns | |
Tuple[ | Tuple(frequency vector, spectrum) |
Normalises a given signal by its spectrum level within a defined frequency range. If
Parameters | |
t:np.ndarray | time vector |
x:np.ndarray | signal |
targetfloat | target spectrum level in dB SPL |
frequency | frequency range for spectrum level calculation |
Returns | |
np.ndarray | normalised signal |
Normalises a given signal by its spectrum level within a defined frequency range. If
Parameters | |
x:np.ndarray | signal |
fs:Union[ | sampling frequency |
targetfloat | target spectrum level in dB SPL |
frequency | frequency range for spectrum level calculation |
Returns | |
np.ndarray | normalised signal |
Computes the spectrum level within a given frequency range
Parameters | |
f:np.ndarray | frequency vector |
spectrum:np.ndarray | spectrum vector |
frequencyUnion[ | frequency range to compute spectrum level from, if None, the full spectrum is used |
Returns | |
Union[ |