parameters: (values, percentile)
docstring: Calculates the value below which a given percentage of values fall.
  
    For example, if 17% of the values are less than 5.0, then 5.0 is the 17th
    percentile for this set of values. When the percentage doesn't exactly
    match a rank in the list of values, the percentile is computed using linear
    interpolation between closest ranks.
  
    Args:
      values: A list of numerical values.
      percentile: A number between 0 and 100.
  
    Returns:
      The Nth percentile for the list of values, where N is the given percentage.
docstring_summary: Calculates the value below which a given percentage of values fall.
docstring_tokens: Calculates the value below which a given percentage of values fall .
function: def Percentile(values, percentile):
    """Calculates the value below which a given percentage of values fall.
  
    For example, if 17% of the values are less than 5.0, then 5.0 is the 17th
    percentile for this set of values. When the percentage doesn't exactly
    match a rank in the list of values, the percentile is computed using linear
    interpolation between closest ranks.
  
    Args:
      values: A list of numerical values.
      percentile: A number between 0 and 100.
  
    Returns:
      The Nth percentile for the list of values, where N is the given percentage.
    """
    if not values:
      return 0.0
    sorted_values = sorted(values)
    n = len(values)
    percentile /= 100.0
    if percentile <= 0.5 / n:
      return sorted_values[0]
    elif percentile >= (n - 0.5) / n:
      return sorted_values[-1]
    else:
      floor_index = int(math.floor(n * percentile -  0.5))
      floor_value = sorted_values[floor_index]
      ceil_value = sorted_values[floor_index+1]
      alpha = n * percentile - 0.5 - floor_index
      return floor_value + alpha * (ceil_value - floor_value)
function_tokens: def Percentile ( values , percentile ) : if not values : return 0.0 sorted_values = sorted ( values ) n = len ( values ) percentile /= 100.0 if percentile <= 0.5 / n : return sorted_values [ 0 ] elif percentile >= ( n - 0.5 ) / n : return sorted_values [ - 1 ] else : floor_index = int ( math . floor ( n * percentile - 0.5 ) ) floor_value = sorted_values [ floor_index ] ceil_value = sorted_values [ floor_index + 1 ] alpha = n * percentile - 0.5 - floor_index return floor_value + alpha * ( ceil_value - floor_value )