Ejemplo n.º 1
0
def legacy():
  patts = stats.ltrimboth(patts, 0.1) # statlib.
  #patts = statlib.stats.ltrimboth(patts, 0.1) # statlib.
  print 'len(patts)', len(patts)
  #stats.writecc([patts,patts],'test.txt')
  alist = range(1,6)
  print 'sum(alist)', sum(alist)
  print 'cumsum(alist)', stats.cumsum(alist)
  print 'geometricmean(alist)', stats.geometricmean(alist)
Ejemplo n.º 2
0
def testFiltre():
  fTilObj = FiltreTil('lf')
  fTilObj.getPatternsDictFor(5)
  fTilObj.analyze()
  patts = fTilObj.getPatternsFor(5)
  print 'len(patts)', len(patts)
  patts = stats.ltrimboth(patts, 0.1) # statlib.
  #patts = statlib.stats.ltrimboth(patts, 0.1) # statlib.
  print 'len(patts)', len(patts)
  #stats.writecc([patts,patts],'test.txt')
  alist = range(1,6)
  print 'sum(alist)', sum(alist)
  print 'cumsum(alist)', stats.cumsum(alist)
  print 'geometricmean(alist)', stats.geometricmean(alist)