コード例 #1
0
ファイル: test_ecdf.py プロジェクト: 0ceangypsy/statsmodels
 def test_monotone_fn_inverter(self):
     x = [6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
     fn = lambda x : 1./x
     y = fn(np.array(x))
     f = monotone_fn_inverter(fn, x)
     npt.assert_array_equal(f.y, x[::-1])
     npt.assert_array_equal(f.x, y[::-1])
コード例 #2
0
ファイル: test_ecdf.py プロジェクト: arnab0000/Internships
 def test_monotone_fn_inverter(self):
     x = [6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
     fn = lambda x: 1. / x
     y = fn(np.array(x))
     f = monotone_fn_inverter(fn, x)
     npt.assert_array_equal(f.y, x[::-1])
     npt.assert_array_equal(f.x, y[::-1])