#NEWLINE# def whiten( self , x ) : #NEWLINE# #INDENT# "\n        whiten the data by linear transformation\n\n        Parameters\n        -----------\n        x : array-like, 1d or 2d\n            Data to be whitened, if 2d then each row contains an independent\n            sample of the multivariate random vector\n\n        Returns\n        -------\n        np.dot(x, self.cholsigmainv.T)\n\n        Notes\n        -----\n        This only does rescaling, it doesn't subtract the mean, use standardize\n        for this instead\n\n        See Also\n        --------\n        standardize : subtract mean and rescale to standardized random variable.\n\n        " #NEWLINE# x = np . asarray ( x ) #NEWLINE# return np . dot ( x , self . cholsigmainv . T )