Patterns in static

Apophenia

Data Fields
apop_dconstrain_settings Struct Reference

Data Fields

apop_modelbase_model
 
double(* constraint )(apop_data *, apop_model *)
 
double(* scaling )(apop_model *)
 
gsl_rng * rng
 
int draw_ct
 

Detailed Description

For use with the apop_dconstrain model. See its documentation for an example.

Field Documentation

apop_model* apop_dconstrain_settings::base_model

The model, before constraint.

double(* apop_dconstrain_settings::constraint)(apop_data *, apop_model *)

The constraint. Return 1 if the data is in the constraint; zero if out.

int apop_dconstrain_settings::draw_ct

How many draws to make for calculating the in-constraint model density via random draws. Current default: 1e4.

gsl_rng* apop_dconstrain_settings::rng

If you don't provide a scaling function, I calculate the in-constraint model density via random draws. If no rng is provided, I use a default RNG; see apop_rng_get_thread.

double(* apop_dconstrain_settings::scaling)(apop_model *)

Optional. Return the percent of the model density inside the constraint.

Autogenerated by doxygen on Sun Oct 26 2014 (Debian 0.999b+ds3-2).