コード例 #1
0
ファイル: uniform_sample.py プロジェクト: pombreda/yunomi
 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
ファイル: test_snapshot.py プロジェクト: pombreda/yunomi
 def setUp(self):
     self.snapshot = Snapshot([5, 1, 2, 3, 4])