예제 #1
0
 def test_linear_regression_no_y_arr_perpendicular(self):
     x = np.array(list(zip(self.x, self.y)))
     result = aux.linear_regression_perpendicular(x)
     self._test_linreg(result)
예제 #2
0
 def test_linear_regression_shape_exception_perpendicular(self):
     with self.assertRaises(aux.PyteomicsError):
         aux.linear_regression_perpendicular(self.x)
예제 #3
0
 def test_linear_regression_simple_perpendicular(self):
     result = aux.linear_regression_perpendicular(self.x, self.y)
     self._test_linreg(result)