def _whiten(x):
    """Scaling function for :class:`Scaler`. Performs ``(x - mean(x)) / std(x)``. Consider using
    :func:`whiten` instead."""
    scaling_center = x.mean(axis=0)
    scaling_factor = x.std(axis=0, ddof=0)
    return scaling_center, scaling_factor
