Exemple #1
0
 def test_alpha(self):
     dt = equations.Alpha()
     self.assertEqual(dt.parameters, {
         'onset': 0.5,
         'alpha': 13.0,
         'beta': 42.0
     })
Exemple #2
0
 def test_alpha(self):
     dt = equations.Alpha()
     self.assertEqual(dt.parameters, {
         'onset': 0.5,
         'alpha': 13.0,
         'beta': 42.0
     })
     self.assertEqual(
         dt.ui_equation,
         "(alpha * beta) / (beta - alpha) * (2.71**(-alpha * (var-onset)) - "
         "2.71**(-beta * (var-onset))) if (var-onset) > 0 else  0.0 * var")
Exemple #3
0
 def test_alpha(self):
     dt = equations.Alpha()
     assert dt.parameters == {'onset': 0.5, 'alpha': 13.0, 'beta': 42.0}
Exemple #4
0
 def test_alpha(self):
     t = np.linspace(0,1,100)
     dt = equations.Alpha()
     assert dt.parameters == {'onset': 0.5, 'alpha': 13.0, 'beta': 42.0}
     np.testing.assert_allclose( dt.evaluate(t)[10:], dt.evaluate(t[10:]))