From 0c7e6308c128a0fab0e484d974ca661b26cb459a Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Wed, 30 Jun 2021 14:49:03 +0530 Subject: Add offcenter ellipsoid extent oracle. * src/oracles.sc: Include gsl/gsl_poly.h. (ellipsoid-extent-oracle-with-center): New function. * include/oracles.h (ellipsoid_params): Add center member. (ellipsoid_extent_oracle_with_center): Declare it. --- include/oracles.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/oracles.h b/include/oracles.h index 6bd4d39..2ae8cc9 100644 --- a/include/oracles.h +++ b/include/oracles.h @@ -57,9 +57,11 @@ double cube_true_volume (unsigned int dimension, void *params); typedef struct { const gsl_vector* axes; + const gsl_vector* center; } ellipsoid_params; double ellipsoid_extent_oracle (const gsl_rng *r, const gsl_vector *x, void *params); +double ellipsoid_extent_oracle_with_center (const gsl_rng *r, const gsl_vector *x, void *params); double ellipsoid_true_volume (unsigned int dimension, void *params); typedef struct { -- cgit v1.2.3