Home | Trees | Index | Help |
---|
Package SimPy :: Module SimulationTrace :: Class Monitor |
|
object
--+ |list
--+ | Monitor
Monitored variables
A Class for monitored variables, that is, variables that allow one to gather simple statistics. A Monitor is a subclass of list and list operations can be performed on it. An object is established using m= Monitor(name = '..'). It can be given a unique name for use in debugging and in tracing and ylab and tlab strings for labelling graphs.Method Summary | |
---|---|
__init__(self,
name,
ylab,
tlab)
| |
deprecated: accum for backward compatibility | |
deprecated: the number of observations made | |
A histogram of the monitored y data values. | |
the simple average of the monitored variable | |
record y and t | |
reset the sums and counts for the monitored variable | |
deprecated: tally for backward compatibility | |
the time-average of the monitored variable. | |
the sum of the y | |
the series of measured times | |
the sample variance of the monitored variable | |
the series of measured values | |
Inherited from list | |
x.__add__(y) <==> x+y | |
x.__contains__(y) <==> y in x | |
x.__delitem__(y) <==> del x[y] | |
Use of negative indices is not supported. | |
x.__eq__(y) <==> x==y | |
x.__ge__(y) <==> x>=y | |
x.__getattribute__('name') <==> x.name | |
x.__getitem__(y) <==> x[y] | |
Use of negative indices is not supported. | |
x.__gt__(y) <==> x>y | |
x.__hash__() <==> hash(x) | |
x.__iadd__(y) <==> x+=y | |
x.__imul__(y) <==> x*=y | |
x.__iter__() <==> iter(x) | |
x.__le__(y) <==> x<=y | |
x.__len__() <==> len(x) | |
x.__lt__(y) <==> x<y | |
x.__mul__(n) <==> x*n | |
x.__ne__(y) <==> x!=y | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
x.__repr__() <==> repr(x) | |
x.__rmul__(n) <==> n*x | |
x.__setitem__(i, y) <==> x[i]=y | |
Use of negative indices is not supported. | |
L.append(object) -- append object to end | |
L.extend(iterable) -- extend list by appending elements from the iterable | |
L.index(value, [start, [stop]]) -> integer -- return first index of value | |
L.insert(index, object) -- insert object before index | |
L.pop([index]) -> item -- remove and return item at index (default last) | |
L.remove(value) -- remove first occurrence of value | |
L.reverse() -- reverse *IN PLACE* | |
L.sort(cmpfunc=None) -- stable sort *IN PLACE*; cmpfunc(x, y) -> -1, 0, 1 | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Method Details |
---|
accum(self, y, t=None)deprecated: accum for backward compatibility |
count(self)deprecated: the number of observations made
|
histogram(self, low=0.0, high=100.0, nbins=10)A histogram of the monitored y data values. |
mean(self)the simple average of the monitored variable |
observe(self, y, t=None)record y and t |
reset(self, t=None)reset the sums and counts for the monitored variable |
tally(self, y)deprecated: tally for backward compatibility |
timeAverage(self, t=None)the time-average of the monitored variable. If t is used it is assumed to be the current time, otherwise t = now() |
total(self)the sum of the y |
tseries(self)the series of measured times |
var(self)the sample variance of the monitored variable |
yseries(self)the series of measured values |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Thu Jun 09 16:09:43 2005 | http://epydoc.sf.net |