Beispiel #1
0
 def test_sinusoidal_intercepts(self):
     sinusoidal_intercepts = intercepts('sinusoidal', coefficients,
                                        precision)
     self.assertEqual(sinusoidal_intercepts, [None])
Beispiel #2
0
 def test_logarithmic_intercepts(self):
     logarithmic_intercepts = intercepts('logarithmic', coefficients[:2],
                                         precision)
     self.assertEqual(logarithmic_intercepts, [0.2231])
Beispiel #3
0
 def test_logistic_intercepts(self):
     logistic_intercepts = intercepts('logistic', coefficients[:3],
                                      precision)
     self.assertEqual(logistic_intercepts, [None])
Beispiel #4
0
 def test_exponential_intercepts(self):
     exponential_intercepts = intercepts('exponential', coefficients[:2],
                                         precision)
     self.assertEqual(exponential_intercepts, [None])
Beispiel #5
0
 def test_hyperbolic_intercepts(self):
     hyperbolic_intercepts = intercepts('hyperbolic', coefficients[:2],
                                        precision)
     self.assertEqual(hyperbolic_intercepts, [-0.6667])
Beispiel #6
0
 def test_cubic_intercepts(self):
     cubic_intercepts = intercepts('cubic', coefficients, precision)
     self.assertEqual(cubic_intercepts, [-1.4455])
Beispiel #7
0
 def test_quadratic_intercepts(self):
     quadratic_intercepts = intercepts('quadratic', coefficients[:3],
                                       precision)
     self.assertEqual(quadratic_intercepts, [None])
Beispiel #8
0
 def test_linear_intercepts(self):
     linear_intercepts = intercepts('linear', coefficients[:2], precision)
     self.assertEqual(linear_intercepts, [-1.5])