Patterns in static

Apophenia

apop_dconstrain_settings Struct Reference

Data Fields

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

Detailed Description

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

Field Documentation

§ base_model

apop_model * apop_dconstrain_settings::base_model

The model, before constraint.

§ constraint

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

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

§ draw_ct

int apop_dconstrain_settings::draw_ct

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

§ rng

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.

§ scaling

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

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

Autogenerated by doxygen (Debian ).