aboutsummaryrefslogtreecommitdiff
path: root/include/oracles.h
diff options
context:
space:
mode:
authorArun Isaac2021-06-30 14:49:03 +0530
committerArun Isaac2021-06-30 14:49:03 +0530
commit0c7e6308c128a0fab0e484d974ca661b26cb459a (patch)
treef4bfff9334ed9826512f115bf86eabc5a0e61cfd /include/oracles.h
parentec527081eaaec124c070288befc0815b139ee232 (diff)
downloadnsmc-0c7e6308c128a0fab0e484d974ca661b26cb459a.tar.gz
nsmc-0c7e6308c128a0fab0e484d974ca661b26cb459a.tar.lz
nsmc-0c7e6308c128a0fab0e484d974ca661b26cb459a.zip
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.
Diffstat (limited to 'include/oracles.h')
-rw-r--r--include/oracles.h2
1 files changed, 2 insertions, 0 deletions
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 {