aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArun Isaac2021-02-05 14:11:39 +0530
committerArun Isaac2021-02-05 14:11:39 +0530
commitb5d263029323217f8d2793f7b22f0f180253fe1f (patch)
treec82d46db0c91cea97da28f99d646e7e6eebf0d9d /src
parent983f091af7849f259366f641b438ac1fee3df940 (diff)
downloadnsmc-b5d263029323217f8d2793f7b22f0f180253fe1f.tar.gz
nsmc-b5d263029323217f8d2793f7b22f0f180253fe1f.tar.lz
nsmc-b5d263029323217f8d2793f7b22f0f180253fe1f.zip
Remove unused extent oracles.
* include/oracles.c (symmetric_spiral_extent_oracle, right_triangle_extent_oracle, right_triangle_true_volume, sphere_extent_oracle, sphere_maximum_extent, plane_extent_oracle): Delete function prototype declarations. * src/oracles.c (symmetric_spiral_extent_oracle, right_triangle_extent_oracle, right_triangle_true_volume, sphere_extent_oracle, sphere_maximum_extent, plane_extent_oracle): Delete functions.
Diffstat (limited to 'src')
-rw-r--r--src/oracles.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/oracles.c b/src/oracles.c
index 80f401f..9f6577f 100644
--- a/src/oracles.c
+++ b/src/oracles.c
@@ -43,39 +43,6 @@ double beta_true_volume (double alpha, double beta, unsigned int dimension)
return vol;
}
-double symmetric_spiral_extent_oracle (const gsl_vector* x)
-{
- double angle = atan2(gsl_vector_get(x, 1), gsl_vector_get(x, 0));
- return fabs(angle);
-}
-
-double right_triangle_extent_oracle (const gsl_vector* x, double base, double height)
-{
- double max_angle = atan(height / base);
- double angle = atan2(gsl_vector_get(x, 1), gsl_vector_get(x, 0));
- return (angle > 0) && (angle < max_angle) ? base / cos(angle) : 0;
-}
-
-double right_triangle_true_volume (double base, double height)
-{
- return 0.5 * base * height;
-}
-
-double sphere_extent_oracle (const gsl_vector* x, double radius)
-{
- return radius;
-}
-
-double sphere_maximum_extent (double radius)
-{
- return radius;
-}
-
-double plane_extent_oracle (const gsl_vector* x, double displacement)
-{
- return displacement / fabs(gsl_vector_get(x, 0));
-}
-
double infinity_norm (const gsl_vector* x)
{
double max = fabs(gsl_vector_get(x, 0));