def whiten(x):
    """Whiten the data
    
    returns (x - mean(x)) / std(x)
    
    Arguments:
        x {np.array} -- Input data
    
    Returns:
        np.array -- Whitened data
    """
    mu = x.mean()
    std = x.std()
    x = (x-mu)/std
    return x