From 8fdeb4a8f5baca01ea7da16eae6b751d41fd2516 Mon Sep 17 00:00:00 2001 From: josemiotto Date: Mon, 20 Aug 2018 10:31:12 +0200 Subject: [PATCH] try almost plain requirements.txt --- docs/source/requirements.txt | 22 ---------------------- levy/__init__.py | 7 ++++--- requirements.txt | 20 -------------------- 3 files changed, 4 insertions(+), 45 deletions(-) delete mode 100644 docs/source/requirements.txt diff --git a/docs/source/requirements.txt b/docs/source/requirements.txt deleted file mode 100644 index a759166..0000000 --- a/docs/source/requirements.txt +++ /dev/null @@ -1,22 +0,0 @@ -alabaster==0.7.11 -Babel==2.6.0 -certifi==2018.8.13 -chardet==3.0.4 -colorama==0.3.9 -docutils==0.14 -idna==2.7 -imagesize==1.0.0 -Jinja2==2.10 -MarkupSafe==1.0 -numpy==1.15.0 -packaging==17.1 -Pygments==2.2.0 -pyparsing==2.2.0 -pytz==2018.5 -requests==2.19.1 -scipy==1.1.0 -six==1.11.0 -snowballstemmer==1.2.1 -Sphinx==1.7.6 -sphinxcontrib-websupport==1.1.0 -urllib3==1.23 diff --git a/levy/__init__.py b/levy/__init__.py index 302a059..32709b6 100644 --- a/levy/__init__.py +++ b/levy/__init__.py @@ -321,13 +321,14 @@ def change_par(alpha, beta, mu, sigma, par_input, par_output): def levy(x, alpha, beta, mu=0.0, sigma=1.0, cdf=False, par=0): """ - Levy with the tail replaced by the analytical approximation. + Levy distribution with the tail replaced by the analytical (power law) approximation. *alpha* in (0, 2] is the index of stability, or characteristic exponent. - *beta* in [-1, 1] is the skewness. *mu* in real and *sigma* >= 0 are the + *beta* in [-1, 1] is the skewness. *mu* in real and *sigma* > 0 are the center and scale of the distribution (corresponding to *delta* and *gamma* in Nolan's notation; note that sigma in levy corresponds to sqrt(2) sigma in the normal distribution). + *cdf* is a Boolean that specifies if it returns the cdf instead of the pdf. Parametrization can be chosen according to Nolan, par={0,1}. @@ -422,7 +423,7 @@ def neglog_levy(x, alpha, beta, mu, sigma, par=0): def fit_levy(x, alpha=None, beta=None, mu=None, sigma=None, par=0): """ Estimate parameters of Levy stable distribution given data x, using - the Maximum Likelihood method. + Maximum Likelihood estimation. By default, searches all possible Levy stable distributions. However you may restrict the search by specifying the values of one or more diff --git a/requirements.txt b/requirements.txt index a759166..7100bd7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,22 +1,2 @@ -alabaster==0.7.11 -Babel==2.6.0 -certifi==2018.8.13 -chardet==3.0.4 -colorama==0.3.9 -docutils==0.14 -idna==2.7 -imagesize==1.0.0 -Jinja2==2.10 -MarkupSafe==1.0 numpy==1.15.0 -packaging==17.1 -Pygments==2.2.0 -pyparsing==2.2.0 -pytz==2018.5 -requests==2.19.1 scipy==1.1.0 -six==1.11.0 -snowballstemmer==1.2.1 -Sphinx==1.7.6 -sphinxcontrib-websupport==1.1.0 -urllib3==1.23