original_docstring: Map curvature section data into turn speed sections data.
      Returns: [section start distance, section end distance, speed limit based on max curvature, sing of curvature]
    
docstring: Map curvature section data into turn speed sections data.
  Returns: [section start distance, section end distance, speed limit based on max curvature, sing of curvature]
docstring_tokens: Map curvature section data into turn speed sections data . Returns : [ section start distance section end distance speed limit based on max curvature sing of curvature ]
code: def speed_section(curv_sec):
    """Map curvature section data into turn speed sections data.
      Returns: [section start distance, section end distance, speed limit based on max curvature, sing of curvature]
    """
    max_curv_idx = np.argmax(curv_sec[:, 0])
    start = np.amin(curv_sec[:, 2])
    end = np.amax(curv_sec[:, 2])
  
    return np.array([start, end, np.sqrt(_MAX_LAT_ACC / curv_sec[max_curv_idx, 0]), curv_sec[max_curv_idx, 1]])
code_tokens: def speed_section ( curv_sec ) : max_curv_idx = np . argmax ( curv_sec [ : , 0 ] ) start = np . amin ( curv_sec [ : , 2 ] ) end = np . amax ( curv_sec [ : , 2 ] ) return np . array ( [ start , end , np . sqrt ( _MAX_LAT_ACC / curv_sec [ max_curv_idx , 0 ] ) , curv_sec [ max_curv_idx , 1 ] ] )
short_docstring: Map curvature section data into turn speed sections data.
short_docstring_tokens: Map curvature section data into turn speed sections data .
comment: """Map curvature section data into turn speed sections data.
      Returns: [section start distance, section end distance, speed limit based on max curvature, sing of curvature]
    """