(self, X)
return np.median(self.freq * np.diff(xphase, axis=-1) / (2 * np.pi), axis=-1)
transform.
transform.
transform .
def transform(self, X):
        """transform. """
        xphase = np.unwrap(np.angle(signal.hilbert(X, axis=-1)))
        return np.median(self.freq * np.diff(xphase, axis=-1) / (2 * np.pi), axis=-1)
def transform ( self , X ) : xphase = np . unwrap ( np . angle ( signal . hilbert ( X , axis = - 1 ) ) ) return np . median ( self . freq * np . diff ( xphase , axis = - 1 ) / ( 2 * np . pi ) , axis = - 1 )