For mixture distributions, typically set up using apop_model_mixture. See apop_mixture for discussion. Please consider all elements but
weights as private and subject to change. See the examples for use of these elements.
|apop_model * apop_mixture_settings::cmf|
For internal use by the draw method.
|int * apop_mixture_settings::cmf_refct|
For internal use, so I can garbage-collect the CMF when needed.
|apop_model ** apop_mixture_settings::model_list|
NULL-terminated list of component models.
|gsl_vector * apop_mixture_settings::next_weights|
For internal use.
|int * apop_mixture_settings::param_sizes|
The number of parameters for each model. Useful for unpacking the params.
|gsl_vector * apop_mixture_settings::weights|
The likelihood of a draw from each component. Default is equal likelihood for each mixture element. Or set this to a weight vector of your choosing, or set
find_weights='y' and have
apop_estimate find optimal weights.