Lines Matching refs:stat
41 def scalar(stat):
42 stat = unproxy(stat)
43 assert(stat.__scalar__() != stat.__vector__())
44 return stat.__scalar__()
46 def vector(stat):
47 stat = unproxy(stat)
48 assert(stat.__scalar__() != stat.__vector__())
49 return stat.__vector__()
51 def value(stat, *args):
52 stat = unproxy(stat)
53 return stat.__value__(*args)
55 def values(stat, run):
56 stat = unproxy(stat)
58 for i in xrange(len(stat)):
59 val = value(stat, run, i)
65 def total(stat, run):
66 return sum(values(stat, run))
68 def len(stat):
69 stat = unproxy(stat)
70 return stat.__len__()
186 if attr == 'stat':
187 raise AttributeError, '%s is read only' % stat
749 stat = None
751 stat = ScalarStat()
753 stat = VectorStat()
755 stat = Dist()
757 stat = VectorDist()
759 stat = Vector2d()
761 stat = Formula()
763 stat.__dict__['source'] = source
764 stat.__dict__['ticks'] = None
765 stat.__dict__.update(data.__dict__)
767 return stat