def threshold_RMSE(upper_bound, lower_bound, q=3):
    """Compute threshold for RMSE metric.

    Args:
        upper_bound (int): Upper bound of regression outputs
        lower_bound (int): lower bound of regression outputs
        q (int): Quantification parameter

    Returns:
        threshold (float): The minimal threshold

    """
    return (upper_bound - lower_bound) / q