Exemple #1
0
    def test_yint_err(self):
        reg = isochron_regressor(self.xs, self.xes, self.ys, self.yes)
        nyreg = isochron_regressor(self.xs, self.xes, self.ys, self.yes, reg='newyork')

        v = reg.get_intercept_error()
        nv = nyreg.get_intercept_error()

        self.assertAlmostEqual(v, nv)
        self.assertAlmostEqual(v, 2.75395e-5)
Exemple #2
0
    def test_yint_err(self):
        reg = isochron_regressor(self.xs, self.xes, self.ys, self.yes)
        nyreg = isochron_regressor(self.xs, self.xes, self.ys, self.yes, reg='newyork')

        v = reg.get_intercept_error()
        nv = nyreg.get_intercept_error()

        self.assertAlmostEqual(v, nv)
        self.assertAlmostEqual(v, 2.75395e-5)
Exemple #3
0
 def test_regs(self):
     reg = isochron_regressor(
         self.xs,
         self.xes,
         self.ys,
         self.yes,
     )
     nyreg = isochron_regressor(self.xs,
                                self.xes,
                                self.ys,
                                self.yes,
                                reg='newyork')
     self.assertEqual(reg.predict(0), nyreg.predict(0))
Exemple #4
0
 def test_yint(self):
     nyreg = isochron_regressor(self.xs,
                                self.xes,
                                self.ys,
                                self.yes,
                                reg='newyork')
     v = nyreg.predict(0)
     self.assertAlmostEqual(v, 3.39467e-3)
Exemple #5
0
 def test_yint(self):
     nyreg=isochron_regressor(self.xs, self.xes, self.ys, self.yes, reg='newyork')
     v=nyreg.predict(0)
     self.assertAlmostEqual(v,3.39467e-3)
Exemple #6
0
 def test_regs(self):
     reg=isochron_regressor(self.xs, self.xes, self.ys, self.yes,)
     nyreg=isochron_regressor(self.xs, self.xes, self.ys, self.yes, reg='newyork')
     self.assertEqual(reg.predict(0), nyreg.predict(0))