ism3d.maths.stats¶
Functions
**** only here for backward compaibility * |
|
note: |
|
* we also wrap the random generator into rv_continous class * *** but this inline function may have better performance without the error checking overhead in rv_continous class |
|
https://docs.scipy.org/doc/numpy-1.14.0/reference/generated/numpy.random.RandomState.html#numpy.random.RandomState use_nprng==True: use np built-in random generator rather than the hardcoded uniform+its formula more ppf rvs can be found here: https://github.com/scipy/scipy/blob/master/scipy/stats/_continuous_distns.py scipy try to use special.fun as much as possible due to performance gain |
|
The relation between x and q (i.e. |
|
Generate a pseudo-random random variable set following a target distribution described by the PDF using the inverse transform / pesudo-random number sampling method |
|
Generate a pseudo-random sample (approximately) following a target PDF specified by a n-dimension array The inverse transform sampling approach is used without expensive MC. see more details here: https://stackoverflow.com/questions/21100716/fast-arbitrary-distribution-random-sampling/21101584#21101584. |
|
return a seeded RNG plus is_mkl mkl_random is preferrred over numpy.random |
Classes
rho Distribution of a axisymatteric 2D distribution with a Exponential radial profile |
|
rho Distribution of a axisymatteric 2D distribution with a Exponential radial profile |
|
rho Distribution of a axisymatteric 2D distribution with a Gaussian radial profile |
|
rho Distribution of a axisymatteric 2D distribution with a Exponential radial profile this is a direct implementation for testing, one should use sech2 instead |
|
rho Distribution of a axisymatteric 2D distribution with a Sersic radial profile template from: |