Пример #1
0
 def get_snapshot(self):
     """
     Creates a statistical snapshot from the current set of values.
     """
     copy = []
     for i in xrange(self.size()):
         copy.append(self.values[i])
     return Snapshot(copy)
Пример #2
0
 def get_snapshot(self):
     """
     Creates a statistical snapshot from the current set of values.
     """
     return Snapshot(self.values.values())
Пример #3
0
 def get_snapshot(self):
     """
     L{Histogram.get_snapshot}
     """
     values = self.histogram.get_snapshot().get_values()
     return Snapshot(values)
Пример #4
0
 def setUp(self):
     self.snapshot = Snapshot([5, 1, 2, 3, 4])