@staticmethod
def _normalize(data):
    """Normalize data to the range [0, 1].

        This is done by substracting to each value its integer part, leaving only
        the decimal part, and then shifting the sign of the negative values.
        """
    data = data - data.astype(int)
    data[data < 0] = -data[data < 0]
    return data
