def test_wls_1d(self): z = IRWLS.wls(self.x, self.y, self.w) assert_array_almost_equal(z[0], 1)
def test_wls_2d(self): z = IRWLS.wls(self.x, self.y, self.w) assert_array_almost_equal(z[0], np.ones((2, 1)))