Data Fields | |
| gsl_vector * | cmf |
| int * | cmf_refct |
| char | draw_index |
| long double | total_weight |
Settings to accompany the apop_pmf.
| gsl_vector * apop_pmf_settings::cmf |
A cumulative mass function, for the purposes of making random draws.
| int * apop_pmf_settings::cmf_refct |
For internal use, so I can garbage-collect the CMF when needed.
| char apop_pmf_settings::draw_index |
If 'y', then draws from the PMF return the integer index of the row drawn. If 'n' (the default), then return the data in the vector/matrix elements of the data set.
| long double apop_pmf_settings::total_weight |
Keep the total weight, in case the input weights aren't normalized to sum to one.