Source: GitHub
Signature¶
def sdynpy.signal_processing.sdynpy_srs.sum_decayed_sines_displacement_velocity(sine_frequencies, sine_amplitudes, sine_decays, sine_delays, sample_rate, block_size, acceleration_factor=1)Creates velocity and displacement signals from acceleration sinusoids.
Parameters¶
sine_frequencies : ndarray An array of frequencies for each sine tone
sine_amplitudes : ndarray An array of amplitudes for each sine tone
sine_decays : ndarray An array of decay values for each sine tone
sine_delays : ndarray An array of delay values for each sine tone
sample_rate : float The sample rate of the signal
block_size : int The number of samples in the signal
acceleration_factor : float, optional Optional scale factor to convert acceleration into velocity and displacement. For example, if sine amplitudes are in G and displacement is desired in inches, the acceleration factor should be set to 386.089. If sine amplitudes are in G and displacement is desired in meters, the acceleration factor should be set to 9.80665. The default is 1, which assumes consistent units (e.g. acceleration in m/s^2, velocity in m/s, displacement in m).
Returns¶
v : ndarray The velocity of the signal.
d : ndarray The displacement of the signal.