示例#1
0
 def uniform_type_1(a, b, x1, x2):
     γ = b
     f = 1 / (γ - a)
     mean = uniform.mean(a, b - a)
     var = uniform.var(a, b - a)
     p = uniform.cdf(x2, a, b - a) - uniform.cdf(x1, a, b - a)
     return γ, mean, var, p, f, a, b
示例#2
0
 def uniform_type_2(a, b, x1, x2):
     γ = (a * b - 1) / a
     f = a
     a = γ
     mean = uniform.mean(a, b - a)
     var = uniform.var(a, b - a)
     p = uniform.cdf(x2, a, b - a) - uniform.cdf(x1, a, b - a)
     return γ, mean, var, p, f, a, b
示例#3
0
 def uniform_type_4(a, b, x1, x2):
     γ = 1 / a
     f = a
     a = (a * b - 1) / (2 * a)
     b = a + γ
     mean = uniform.mean(a, b - a)
     var = uniform.var(a, b - a)
     p = uniform.cdf(x2, a, b - a) - uniform.cdf(x1, a, b - a)
     return γ, mean, var, p, f, a, b
 def mean(self, dist):
     return uniform.mean(*self._get_params(dist))
 def mean(self, dist):
     return uniform.mean(*self._get_params(dist))