Source: GitHub
Signature¶
def sdynpy.signal_processing.sdynpy_srs.temporal_moments(x: numpy.ndarray, dt: float) -> Dict[str, float]Compute temporal moments of a sampled signal.
Parameters¶
x : ndarray Input signal amplitudes with shape
(n_samples,).dt : float Sampling interval.
Returns¶
dict
Dictionary containing:
-
"energy": floatSignal energy.
-
"tau": floatTime centroid.
-
"duration_rms": floatRoot-mean-square duration.
-
"skewness_metric": floatCube-root form of the third central temporal moment.
-
"kurtosis_metric": floatFourth-root form of the fourth central temporal moment.
-
"rea": floatRoot energy amplitude.
Notes¶
This function follows the intent of MATLAB gtempmom and is used to
compute metrics for each generated acceleration history.