def _unitrange(x):
    """Scaling function for :class:`Scaler`. Performs ``(x - min(x)) / (max(x) - min(x))``.
    Consider using :func:`unitrange` instead."""
    scaling_center = x.min(axis=0)
    scaling_factor = x.max(axis=0) - scaling_center
    return scaling_center, scaling_factor
