コード例 #1
0
ファイル: test_ros.py プロジェクト: kasunsp/pinalpha_mvp
 def test_censored_2(self):
     row = {'censored': True, 'det_limit_index': 4, 'rank': 2}
     result = ros._ros_plot_pos(row, 'censored', self.cohn)
     assert_equal(result, 0.41739130434782606)
コード例 #2
0
ファイル: test_ros.py プロジェクト: kasunsp/pinalpha_mvp
 def test_uncensored_2(self):
     row = {'censored': False, 'det_limit_index': 2, 'rank': 12}
     result = ros._ros_plot_pos(row, 'censored', self.cohn)
     assert_equal(result, 0.51899313501144173)
コード例 #3
0
ファイル: test_ros.py プロジェクト: kasunsp/pinalpha_mvp
 def test_censored_1(self):
     row = {'censored': True, 'det_limit_index': 5, 'rank': 4}
     result = ros._ros_plot_pos(row, 'censored', self.cohn)
     assert_equal(result, 1.3714285714285714)
コード例 #4
0
ファイル: test_ros.py プロジェクト: kasunsp/pinalpha_mvp
 def test_uncensored_1(self):
     row = {'censored': False, 'det_limit_index': 2, 'rank': 1}
     result = ros._ros_plot_pos(row, 'censored', self.cohn)
     assert_equal(result, 0.24713958810068648)