Skip to main content

Module centroid_time

Module centroid_time 

Source
Expand description

Time-domain temporal centroid (energy-weighted mean time of a signal).

Functions§

centroid_time
Temporal centroid of signal in seconds: the energy-weighted mean time sum(t_i * x_i^2) / sum(x_i^2) where t_i = i / sample_rate. This is the time-domain analogue of the spectral centroid — the “balance point” of the signal’s energy along the time axis.