(step, num_steps, values)
return values[index]
Map step in performance to desired control signal value.
Map step in performance to desired control signal value.
Map step in performance to desired control signal value .
def _step_to_value(step, num_steps, values):
  """Map step in performance to desired control signal value."""
  num_segments = len(values)
  index = min(step * num_segments // num_steps, num_segments - 1)
  return values[index]
def _step_to_value ( step , num_steps , values ) : num_segments = len ( values ) index = min ( step * num_segments // num_steps , num_segments - 1 ) return values [ index ]