def mean_arterial_pressure(diastolic_bp, systolic_bp):
    """
    The Karvonen Method for target heart rate (THR) - using a range of 50% to 85% intensity. The formula is used to calculate heart rate for exercise at a percentage training intensity.

    args:
        intensity (float): given as a decimal between 0 and 1
        rest (float): resting heart rate, given in beats/minute
        maximum (float): maximum heart rate, given in beats/minute

    Returns:
        float: heart rate for exercise at the given intensity, given in beats/minute
    """
    return (2 * diastolic_bp + systolic_bp) / 3
