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)
def get_snapshot(self): """ Creates a statistical snapshot from the current set of values. """ return Snapshot(self.values.values())
def get_snapshot(self): """ L{Histogram.get_snapshot} """ values = self.histogram.get_snapshot().get_values() return Snapshot(values)
def setUp(self): self.snapshot = Snapshot([5, 1, 2, 3, 4])