def test_1d_ill_conditioned(self):
        # Test for least squares solver utilization when ill-conditioned
        x = array([[case] for case in linspace(0., 1., 40)])
        y = sin(x)
        surrogate = KrigingSurrogate()
        surrogate.train(x, y)
        new_x = array([0.5])
        mu, sigma = surrogate.predict(new_x)

        self.assertTrue(sigma < 1.1e-8)
        assert_rel_error(self, mu, sin(0.5), 1e-6)
dataset/ETHPy150Open OpenMDAO/OpenMDAO/openmdao/surrogate_models/test/test_kriging.py/TestKrigingSurrogate.test_1d_ill_conditioned/original