Home | History | Annotate | Download | only in cros_utils

Lines Matching refs:criterion

42       dm (listoflists,criterion)
58 remap (listoflists,criterion)
72 adm (a,criterion)
320 def dm(listoflists, criterion):
323 the passed criterion expression (a string as a function of x; e.g., 'x[3]>=9'
327 Usage: dm (listoflists, criterion)
328 Returns: rows from listoflists that meet the specified criterion.
330 function = 'filter(lambda x: ' + criterion + ',listoflists)'
362 criterion = ''
368 criterion = criterion + ' x[' + str(columnlist[
370 criterion = criterion[0:-3] # remove the "and" after the last crit
371 function = 'filter(lambda x: ' + criterion + ',listoflists)'
391 criterion = ''
399 criterion = criterion + ' x[' + str(columnlist[i]) + ']==' + critval + ' or'
400 criterion = criterion[0:-2] # remove the "or" after the last crit
401 function = 'filter(lambda x: ' + criterion + ',listoflists)'
623 def remap(listoflists, criterion):
626 a criterion as a function of 'x' so that the result of the following is
627 returned ... map(lambda x: 'criterion',listoflists).
629 Usage: remap(listoflists,criterion) criterion=string
632 function = 'map(lambda x: ' + criterion + ',listoflists)'
854 def adm(a, criterion):
857 the passed criterion expression (a string as a function of x).
859 Usage: adm (a,criterion) where criterion is like 'x[2]==37'
861 function = 'filter(lambda x: ' + criterion + ',a)'
887 criterion = ''
893 criterion = criterion + ' x[' + str(columnlist[
895 criterion = criterion[0:-3] # remove the "and" after the last crit
896 return adm(a, criterion)
913 criterion = ''
923 criterion = criterion + ' x[' + str(columnlist[
925 criterion = criterion[0:-2] # remove the "or" after the last crit
926 return adm(a, criterion)