def _get_elem_at_rank(rank, data, n_negative, n_zeros):
 if (rank < n_negative):
  return data[rank]
 if ((rank - n_negative) < n_zeros):
  return 0
 return data[(rank - n_zeros)]

def _get_elem_at_rank ( rank , data , n_negative , n_zeros ) : if ( rank < n_negative ) : return data [ rank ] if ( ( rank - n_negative ) < n_zeros ) : return 0 return data [ ( rank - n_zeros ) ]
find the value in data augmented with n_zeros for the given rank .