コード例 #1
0
 def test_stratSRS2_R74(self, exact_solution_R74):
     (dW, I, J, f, f_strat, G, G_separate, y0, tspan,
      y) = exact_solution_R74
     ySRS2 = sdeint.stratSRS2(f_strat, G_separate, y0, tspan, dW=dW, J=J)
     _assert_close(ySRS2, y, 1e-2, 1e-2)
     return ySRS2
コード例 #2
0
ファイル: test_integrate.py プロジェクト: yoavram/sdeint
 def test_stratSRS2_R74(self, exact_solution_R74):
     (dW, I, J, f, f_strat, G, G_separate, y0, tspan,y) = exact_solution_R74
     ySRS2 = sdeint.stratSRS2(f_strat, G_separate, y0, tspan, dW=dW, J=J)
     _assert_close(ySRS2, y, 1e-2, 1e-2)
     return ySRS2
コード例 #3
0
 def test_stratSRS2_KPS445(self, exact_solution_KPS445):
     (dW, I, J, f, f_strat, G, y0, tspan, y) = exact_solution_KPS445
     ySRS2 = sdeint.stratSRS2(f_strat, G, y0, tspan, dW=dW, J=J)[:, 0]
     _assert_close(ySRS2, y, 1e-2, 1e-2)
     return ySRS2
コード例 #4
0
ファイル: test_integrate.py プロジェクト: yoavram/sdeint
 def test_stratSRS2_KPS445(self, exact_solution_KPS445):
     (dW, I, J, f, f_strat, G, y0, tspan, y) = exact_solution_KPS445
     ySRS2 = sdeint.stratSRS2(f_strat, G, y0, tspan, dW=dW, J=J)[:,0]
     _assert_close(ySRS2, y, 1e-2, 1e-2)
     return ySRS2