Exemplo n.º 1
0
    def test_cases(self):
        for constrained in self.constrained_cases:
            unconstrained = tools.unconstrain_stationary_univariate(constrained)
            reconstrained = tools.constrain_stationary_univariate(unconstrained)
            assert_allclose(reconstrained, constrained)

        for unconstrained in self.unconstrained_cases:
            constrained = tools.constrain_stationary_univariate(unconstrained)
            reunconstrained = tools.unconstrain_stationary_univariate(constrained)
            assert_allclose(reunconstrained, unconstrained)
Exemplo n.º 2
0
    def test_cases(self):
        for constrained in self.constrained_cases:
            unconstrained = tools.unconstrain_stationary_univariate(
                constrained)
            reconstrained = tools.constrain_stationary_univariate(
                unconstrained)
            assert_allclose(reconstrained, constrained)

        for unconstrained in self.unconstrained_cases:
            constrained = tools.constrain_stationary_univariate(unconstrained)
            reunconstrained = tools.unconstrain_stationary_univariate(
                constrained)
            assert_allclose(reunconstrained, unconstrained)
Exemplo n.º 3
0
 def test_cases(self):
     for constrained, unconstrained in self.cases:
         result = tools.unconstrain_stationary_univariate(constrained)
         assert_allclose(result, unconstrained)
Exemplo n.º 4
0
 def test_cases(self):
     for constrained, unconstrained in self.cases:
         result = tools.unconstrain_stationary_univariate(constrained)
         assert_allclose(result, unconstrained)