コード例 #1
0
 def test_trt(self):
     pmf = disagg.trt_pmf(self.matrix)
     self.aae(pmf, [1.0, 1.0, 1.0])
コード例 #2
0
ファイル: disagg_test.py プロジェクト: ozkankale/oq-engine
 def test_trt(self):
     pmf = disagg.trt_pmf(self.matrix[None])
     # NB: self.matrix.shape -> (2, 2, 2, 2, 3)
     # self.matrix[None].shape -> (1, 2, 2, 2, 2, 3)
     self.aae(pmf, [1.0])
コード例 #3
0
ファイル: disagg_test.py プロジェクト: matley/oq-hazardlib
 def test_trt(self):
     pmf = disagg.trt_pmf(self.matrix)
     self.aae(pmf, [21.25, 21.03, 22.58])
コード例 #4
0
 def test_trt(self):
     pmf = disagg.trt_pmf(self.matrix)
     self.aae(pmf, [1.0, 1.0, 1.0])
コード例 #5
0
 def test_trt(self):
     pmf = disagg.trt_pmf(self.matrix[None])
     # NB: self.matrix.shape -> (2, 2, 2, 2, 3)
     # self.matrix[None].shape -> (1, 2, 2, 2, 2, 3)
     self.aae(pmf, [1.0])