Package lib :: Module RMSlib
[frames] | no frames]

Module RMSlib

source code

Functions
float
one_pk_pk(t, data, dt, Pkwdt)
Measure the peak-to-peak amplitude near time t.
source code
 
compute_intensity(data, dt, DT, DR, HPF, DTSmooth)
Measure the time-series of RMS of a data array data.
source code
Variables
  __package__ = 'lib'

Imports: math, numpy, voice_misc, power


Function Details

one_pk_pk(t, data, dt, Pkwdt)

source code 

Measure the peak-to-peak amplitude near time t.

Parameters:
  • t (float (seconds).) - the time to measure near (units of seconds)
  • data (numpy.ndarray) - the time-series.
  • dt (float (seconds).) - the sampling interval for data
  • Pkwdt (float (seconds).) - Half-width of region over which to compute the peak-to-peak amplitude. The low end of the frequency response will be on the order of 1/Pkwdt.
Returns: float
scalar peak-to-peak amplitude

compute_intensity(data, dt, DT, DR, HPF, DTSmooth)

source code 

Measure the time-series of RMS of a data array data. DT is the sampling interval for the resulting RMS time series.