|
LibRan
0.1
Pseudo-random number distribution generator
|
the fundamental LibRan random variate distribution object More...
#include <libran.h>

Data Fields | |
| const char const * | type |
| LR_type | t |
| LR_data_type | d |
| LR_val | a |
| LR_val | b |
| LR_val | m |
| LR_val | s |
| LR_val | x |
| int | k |
| int | n |
| float | p |
| float | q |
| LR_val | iy |
| LR_val | iy0 |
| int(* | ui )(LR_obj *) |
| long(* | ul )(LR_obj *) |
| float(* | uf )(LR_obj *) |
| double(* | ud )(LR_obj *) |
| float(* | rnf )(LR_obj *) |
| double(* | rnd )(LR_obj *) |
| int(* | rni )(LR_obj *) |
| float(* | pdff )(LR_obj *, float) |
| double(* | pdfd )(LR_obj *, double) |
| float(* | pdfi )(LR_obj *, int) |
| float(* | cdff )(LR_obj *, float) |
| double(* | cdfd )(LR_obj *, double) |
| float(* | cdfi )(LR_obj *, int) |
| void * | aux |
| int | errno |
the fundamental LibRan random variate distribution object
The LR_obj object is the fundemental LibRan random variate distribution object containing the basic attributes defining the specific distribution characteristics.
If the built-in pseudo-random number generator is used then the generator values are also stored within the object to allow each object to act independently.
Other of the attributes serve the object-oriented aspect of the LR_obj object by having pointers to the random variate distribution's RAN, PDF, and CDF functions.
Some random variate distributions (e.g. piece and lspline ) require auxiliary methods to define the distribution.
Lastly there is errno which contains the last error number encountered. Use LR_perror() to display the error description.
| float(* cdfi) (LR_obj *, int) |
| LR_val iy0 |
| float(* pdfi) (LR_obj *, int) |
| int(* rni) (LR_obj *) |
| double(* ud) (LR_obj *) |
1.8.13