Functions | |
| mirkl_error_t * | mir_rnd_instance_create (mirkl_object_t **obj, mirkl_uint32_t flags, mir_prsdata_t *pp, apr_pool_t *pool, apr_pool_t *tmp_pool) |
| mirkl_error_t * | mir_rnd_uniform (mirkl_object_t *obj, double minv, double maxv, double *outv, mirkl_size_t siz) |
| mirkl_error_t * | mir_rnd_gauss (mirkl_object_t *obj, double mu, double sigma, double *outv, mirkl_size_t siz) |
Variables | |
| mirkl_object_t * | MirRandomClass |
| Random class. | |
| mirkl_error_t * mir_rnd_gauss | ( | mirkl_object_t * | obj, |
| double | mu, | ||
| double | sigma, | ||
| double * | outv, | ||
| mirkl_size_t | siz | ||
| ) |
Batch generation of random numbers from Gaussian distribution.
| [in] | obj | Object of random number generator. |
| [in] | mu | Mean value of Gaussian distribution. |
| [in] | sigma | Standard deviation of Gaussian distribution. |
| [out] | outv | Preallocated array for output values. |
| [in] | siz | Number of output values to be calculated. |
| mirkl_error_t * mir_rnd_instance_create | ( | mirkl_object_t ** | obj, |
| mirkl_uint32_t | flags, | ||
| mir_prsdata_t * | pp, | ||
| apr_pool_t * | pool, | ||
| apr_pool_t * | tmp_pool | ||
| ) |
Creation of an instance of the Random class.
| [out] | obj | Reference to the created object. |
| flags | Flags of the object. | |
| pp | Reference to the parser data structure. | |
| pool | The pool to use for allocations of object structures. Should be valid as long as the created object lives. | |
| tmp_pool | The pool for temporary allocations. Can be deleted after calling this function. |
| mirkl_error_t * mir_rnd_uniform | ( | mirkl_object_t * | obj, |
| double | minv, | ||
| double | maxv, | ||
| double * | outv, | ||
| mirkl_size_t | siz | ||
| ) |
Batch generation of random numbers from uniform distribution.
| [in] | obj | Object of random number generator. |
| [in] | minv | Minimal value of normal distribution. |
| [in] | maxv | Maximal value of normal distribution. |
| [out] | outv | Preallocated array for output values. |
| [in] | siz | Number of output values to be calculated. |