diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/extent-sampling.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/extent-sampling.h b/include/extent-sampling.h index 27314a3..ef64fe3 100644 --- a/include/extent-sampling.h +++ b/include/extent-sampling.h @@ -10,7 +10,10 @@ typedef struct { void *params; } extent_oracle_t; -typedef double (*integrand_t) (double, const gsl_vector*); +typedef struct { + double (*integrand) (double, const gsl_vector*, void*); + void *params; +} integrand_t; void init_random (void); @@ -25,7 +28,7 @@ double volume_window unsigned int* number_of_samples); double integral -(integrand_t integrand, extent_oracle_t *extent_oracle, double true_integral, +(integrand_t *integrand, extent_oracle_t *extent_oracle, double true_integral, const gsl_rng* r, unsigned int dimension, double rtol, gsl_rstat_workspace* stats); |