def continuous_to_real(continuous: float, lower_bound: float, upper_bound: float) -> float:
    """
    Convert the continuous variable to its corresponding real value
    """
    val = (upper_bound - lower_bound) * continuous + lower_bound
    if val < lower_bound: return lower_bound
    elif val > upper_bound: return upper_bound
    else: return val