Package SimPy :: Module SimulationTrace :: Class Tally

[hide private]
[frames] | no frames]

# Class Tally

source code

Instance Methods | [hide private]

`` | __init__(self, name="a_Tally", ylab="y", tlab="t")
`` | setHistogram(self, name='', low=0.0, high=100.0, nbins=10) Sets histogram parameters.
`` | observe(self, y, t=None)
`` | reset(self, t=None)
`` | count(self)
`` | total(self)
`` | mean(self)
`` | timeAverage(self, t=None)
`` | var(self)
`` | __len__(self)
`` | __eq__(self, l)
`` | getHistogram(self)
`` | printHistogram(self, fmt="%s") Returns formatted frequency distribution table string from Tally.

Method Details | [hide private]

### __init__(self, name="a_Tally", ylab="y", tlab="t")
(Constructor)

source code

None

### setHistogram(self, name='', low=0.0, high=100.0, nbins=10)

source code

Sets histogram parameters. Must be called to prior to observations initiate data collection for histogram.

### observe(self, y, t=None)

source code

None

### reset(self, t=None)

source code

None

### count(self)

source code

None

### total(self)

source code

None

### mean(self)

source code

None

### timeAverage(self, t=None)

source code

None

### var(self)

source code

None

### __len__(self)
(Length operator)

source code

None

### __eq__(self, l)
(Equality operator)

source code

None

### getHistogram(self)

source code

None

### printHistogram(self, fmt="%s")

source code

Returns formatted frequency distribution table string from Tally. Precondition: setHistogram must have been called. fmt==format of bin range values