Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

First of all... $ fgrep -i -C1 lapla /usr/lib/sagemath/src/sage/gsl/probability_distribution.pyx #TODO: Add more distributions available in gsl #available but not currently wrapped are exponential, laplace, cauchy, landau, gamma, #gamma, beta logistic.

For my purposes i used then in statistics and probability scipy, for instance in order to get a random variable sample of size ten...

sage: from scipy import stats
sage: stats.laplace.rvs( 2017, size=10 )
array([ 2015.97251004,  2014.09872554,  2016.98175955,  2017.07587794,
        2017.11026863,  2019.19102019,  2015.86935513,  2016.53066666,
        2019.09275965,  2016.89277916])

First of all... all...

$ fgrep -i -C1 lapla /usr/lib/sagemath/src/sage/gsl/probability_distribution.pyx
 #TODO: Add more distributions available in gsl
 #available but not currently wrapped are exponential, laplace, cauchy, landau, gamma,
 #gamma, beta logistic.

logistic.

For my purposes i used then in statistics and probability scipy, for instance in order to get a random variable sample of size ten...

sage: from scipy import stats
sage: stats.laplace.rvs( 2017, size=10 )
array([ 2015.97251004,  2014.09872554,  2016.98175955,  2017.07587794,
        2017.11026863,  2019.19102019,  2015.86935513,  2016.53066666,
        2019.09275965,  2016.89277916])