def absolute_difference_distance(x: float, y: float) -> float:
    """Calculate distance for `get_anomalies_density` function by taking absolute value of difference.

    Parameters
    ----------
    x:
        first value
    y:
        second value

    Returns
    -------
    result: float
        absolute difference between values
    """
    return abs(x - y)