original_docstring: 
      Returns a vector whose components i are the minimum (default) or maximum of Y[:i]
      
docstring: Returns a vector whose components i are the minimum (default) or maximum of Y[:i]
docstring_tokens: Returns a vector whose components i are the minimum ( default ) or maximum of Y [ : i ]
code: def best_value(Y,sign=1):
      '''
      Returns a vector whose components i are the minimum (default) or maximum of Y[:i]
      '''
      n = Y.shape[0]
      Y_best = np.ones(n)
      for i in range(n):
          if sign == 1:
              Y_best[i]=Y[:(i+1)].min()
          else:
              Y_best[i]=Y[:(i+1)].max()
      return Y_best
code_tokens: def best_value ( Y , sign = 1 ) : n = Y . shape [ 0 ] Y_best = np . ones ( n ) for i in range ( n ) : if sign == 1 : Y_best [ i ] = Y [ : ( i + 1 ) ] . min ( ) else : Y_best [ i ] = Y [ : ( i + 1 ) ] . max ( ) return Y_best
short_docstring: Returns a vector whose components i are the minimum (default) or maximum of Y[:i]
short_docstring_tokens: Returns a vector whose components i are the minimum ( default ) or maximum of Y [ : i ]
comment: '''
      Returns a vector whose components i are the minimum (default) or maximum of Y[:i]
      '''