def percent_change(ts, ax=-1):
    ts = np.asarray(ts)

    return (ts / np.expand_dims(np.mean(ts, ax), ax) - 1) * 100


#----------Event-related analysis utils ----------------------------------
Returns the % signal change of each point of the times series
dataset/ETHPy150Open nipy/nitime/nitime/utils.py/percent_change