phys2cvr.signal.spc

phys2cvr.signal.spc(ts)[source]

Compute signal percentage change over time series (ts).

Timeseries are divided by the mean. Timeseries that have a mean of 0 are divided by 1 instead.

Parameters:
tsnumpy.ndarray

A timeseries or set of timeseries; last dimension is assumed to be time.

Returns:
numpy.ndarray

Signal percentage change version of the input ts.