WIP: More distributions #1413

Merged
merged 17 commits into from Jan 19, 2013
View
@@ -25,21 +25,32 @@ Continuous Types
.. autofunction:: BetaPrime
.. autofunction:: Cauchy
.. autofunction:: Chi
+.. autofunction:: ChiNoncentral
+.. autofunction:: ChiSquared
.. autofunction:: Dagum
+.. autofunction:: Erlang
.. autofunction:: Exponential
+.. autofunction:: FDistribution
+.. autofunction:: FisherZ
+.. autofunction:: Frechet
.. autofunction:: Gamma
+.. autofunction:: GammaInverse
+.. autofunction:: Kumaraswamy
.. autofunction:: Laplace
.. autofunction:: Logistic
.. autofunction:: LogNormal
.. autofunction:: Maxwell
.. autofunction:: Nakagami
.. autofunction:: Normal
.. autofunction:: Pareto
+.. autofunction:: QuadraticU
+.. autofunction:: RaisedCosine
.. autofunction:: Rayleigh
.. autofunction:: StudentT
.. autofunction:: Triangular
.. autofunction:: Uniform
.. autofunction:: UniformSum
+.. autofunction:: VonMises
.. autofunction:: Weibull
.. autofunction:: WignerSemicircle
.. autofunction:: ContinuousRV
@@ -696,6 +696,16 @@ def test_sympy__stats__crv_types__ChiPSpace():
assert _test_args(ChiPSpace('X', 1))
+def test_sympy__stats__crv_types__ChiNoncentralPSpace():
+ from sympy.stats.crv_types import ChiNoncentralPSpace
+ assert _test_args(ChiNoncentralPSpace('X', 1,1))
+
+
+def test_sympy__stats__crv_types__ChiSquaredPSpace():
+ from sympy.stats.crv_types import ChiSquaredPSpace
+ assert _test_args(ChiSquaredPSpace('X', 1))
+
+
def test_sympy__stats__crv_types__DagumPSpace():
from sympy.stats.crv_types import DagumPSpace
assert _test_args(DagumPSpace('X', 1, 1, 1))
@@ -706,11 +716,35 @@ def test_sympy__stats__crv_types__ExponentialPSpace():
assert _test_args(ExponentialPSpace('X', 1))
+def test_sympy__stats__crv_types__FDistributionPSpace():
+ from sympy.stats.crv_types import FDistributionPSpace
+ assert _test_args(FDistributionPSpace('X', 1, 1))
+
+
+def test_sympy__stats__crv_types__FisherZPSpace():
+ from sympy.stats.crv_types import FisherZPSpace
+ assert _test_args(FisherZPSpace('X', 1, 1))
+
+
+def test_sympy__stats__crv_types__FrechetPSpace():
+ from sympy.stats.crv_types import FrechetPSpace
+ assert _test_args(FrechetPSpace('X', 1, 1, 1))
+
+
+def test_sympy__stats__crv_types__GammaInversePSpace():
+ from sympy.stats.crv_types import GammaInversePSpace
+ assert _test_args(GammaInversePSpace('X', 1, 1))
+
+
def test_sympy__stats__crv_types__GammaPSpace():
from sympy.stats.crv_types import GammaPSpace
assert _test_args(GammaPSpace('X', 1, 1))
+def test_sympy__stats__crv_types__KumaraswamyPSpace():
+ from sympy.stats.crv_types import KumaraswamyPSpace
+ assert _test_args(KumaraswamyPSpace('X', 1, 1))
+
def test_sympy__stats__crv_types__LaplacePSpace():
from sympy.stats.crv_types import LaplacePSpace
assert _test_args(LaplacePSpace('X', 0, 1))
@@ -746,6 +780,14 @@ def test_sympy__stats__crv_types__ParetoPSpace():
assert _test_args(ParetoPSpace('X', 1, 1))
+def test_sympy__stats__crv_types__QuadraticUPSpace():
+ from sympy.stats.crv_types import QuadraticUPSpace
+ assert _test_args(QuadraticUPSpace('X', 1, 2))
+
+def test_sympy__stats__crv_types__RaisedCosinePSpace():
+ from sympy.stats.crv_types import RaisedCosinePSpace
+ assert _test_args(RaisedCosinePSpace('X', 1, 1))
+
def test_sympy__stats__crv_types__RayleighPSpace():
from sympy.stats.crv_types import RayleighPSpace
assert _test_args(RayleighPSpace('X', 1))
@@ -771,6 +813,11 @@ def test_sympy__stats__crv_types__UniformSumPSpace():
assert _test_args(UniformSumPSpace('X', 1))
+def test_sympy__stats__crv_types__VonMisesPSpace():
+ from sympy.stats.crv_types import VonMisesPSpace
+ assert _test_args(VonMisesPSpace('X', 1, 1))
+
+
def test_sympy__stats__crv_types__WeibullPSpace():
from sympy.stats.crv_types import WeibullPSpace
assert _test_args(WeibullPSpace('X', 1, 1))
View
@@ -53,9 +53,12 @@
import crv_types
from crv_types import (
- Arcsin, Benini, Beta, BetaPrime, Cauchy, Chi, ContinuousRV, Dagum,
- Exponential, Gamma, Laplace, Logistic, LogNormal, Maxwell, Nakagami,
- Normal, Pareto, Rayleigh, StudentT, Triangular, Uniform, UniformSum,
- Weibull, WignerSemicircle,
+ ContinuousRV,
+ Arcsin, Benini, Beta, BetaPrime, Cauchy, Chi, ChiNoncentral, ChiSquared,
+ Dagum, Erlang, Exponential, FDistribution, FisherZ, Frechet, Gamma,
+ GammaInverse, Kumaraswamy, Laplace, Logistic, LogNormal, Maxwell,
+ Nakagami, Normal, Pareto, QuadraticU, RaisedCosine, Rayleigh,
+ StudentT, Triangular, Uniform, UniformSum, VonMises, Weibull,
+ WignerSemicircle
)
__all__.extend(crv_types.__all__)
Oops, something went wrong.