pynetdesign.modelling.utils.get_scaling_displacement#
- pynetdesign.modelling.utils.get_scaling_displacement(amps_type, f)[source]#
Get scaling coefficient(s) to convert to the amplitudes to displacement provided the type of original amplitudes and the frequency (or array of frequencies). If f is an array and is used for computation of scaling, output is also an array of the same size.
- Parameters:
- Returns:
- scaling
floatornp.ndarray Resulting scaling coefficient.
- scaling
- Raises:
- ValueError
If
amps_typeis not one of the supported types.