num_diff#

PySeismoSoil.helper_site_response.num_diff(veloc: ndarray) ndarray[source]#

Perform numerical integration on velocity to get acceleration.

Parameters:

veloc (np.ndarray) – Velocity time history. Should have two columns. The 0th column is the time array, and the 1st column is the velocity.

Returns:

accel – Acceleration time history. Same shape as the input.

Return type:

np.ndarray