parameters: (featurey, yline, line_height)
return_statement: return rel_position
docstring: returns the relative position of feature against the line
docstring_summary: returns the relative position of feature against the line
docstring_tokens: returns the relative position of feature against the line
function: def get_y_relative_index(featurey, yline, line_height):
      ''' returns the relative position of feature against the line'''
      rel_position = np.round(10*(featurey - yline) / line_height).astype(np.int)
      rel_position = np.clip(rel_position, -20, 20)                                                        
      rel_position = rel_position + 20
      return rel_position
function_tokens: def get_y_relative_index ( featurey , yline , line_height ) : rel_position = np . round ( 10 * ( featurey - yline ) / line_height ) . astype ( np . int ) rel_position = np . clip ( rel_position , - 20 , 20 ) rel_position = rel_position + 20 return rel_position