Subtracts mean of a vector.
Parameters: vec (iterable) – Python iterable whose mean will be subtracted. Returns: vec with its mean subtracted. Return type: numpy ndarray
import numpy as np from fathon import fathonUtils as fu #time series a = np.random.randn(10000) #zero-mean time series a = fu.subtractMean(a)