Revision 798
Added by Borja Sotomayor almost 14 years ago
stats.py | ||
---|---|---|
137 | 137 |
DiscreteDistribution.__init__(self, values) |
138 | 138 |
self.__distribution = UniformDistribution(0,1) |
139 | 139 |
|
140 |
def seed(self, x): |
|
141 |
self.__distribution.seed(x) |
|
142 |
|
|
140 | 143 |
def get(self): |
141 | 144 |
return self._get_from_prob(self.__distribution.get()) |
142 | 145 |
|
Also available in: Unified diff
Utilization-based LWF generation (still needs some work, but mostly done)