コード例 #1
0
 def test_divide_histogram(self):
     test_histo = {1: 0, 2: 50, 3: 20, 4: 20, INF_LABEL: 0}
     test_high = {2: 0, 3: 20, 4: 20, INF_LABEL: 0}
     test_low = {1: 0, 2: 50, INF_LABEL: 0}
     low, high = AdaptiveTransport.divideHistogram(test_histo)
     self.assertDictEqual(test_high, high)
     self.assertDictEqual(test_low, low)
コード例 #2
0
ファイル: adaptive_test.py プロジェクト: fowlslegs/wfpadtools
 def test_divide_histogram(self):
     test_histo = {1: 0, 2: 50, 3: 20, 4: 20, INF_LABEL: 0}
     test_high = {2: 0, 3: 20, 4: 20, INF_LABEL: 0}
     test_low = {1: 0, 2: 50, INF_LABEL: 0}
     low, high = AdaptiveTransport.divideHistogram(test_histo)
     self.assertDictEqual(test_high, high)
     self.assertDictEqual(test_low, low)
コード例 #3
0
 def test_get_histo_from_distr_params(self):
     h = AdaptiveTransport.getHistoFromDistrParams("weibull", 2)
     pass
コード例 #4
0
ファイル: adaptive_test.py プロジェクト: fowlslegs/wfpadtools
 def test_get_histo_from_distr_params(self):
     h = AdaptiveTransport.getHistoFromDistrParams("weibull", 2)
     pass