From 1c9128be78a68805ab0d80631c1984fd4291d894 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Wed, 3 Feb 2021 13:02:23 +0530 Subject: Initial commit --- nd-random.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 nd-random.h (limited to 'nd-random.h') diff --git a/nd-random.h b/nd-random.h new file mode 100644 index 0000000..9637a0e --- /dev/null +++ b/nd-random.h @@ -0,0 +1,15 @@ +#ifndef ND_RANDOM_H +#define ND_RANDOM_H + +#include +#include +#include + +void random_direction_vector (const gsl_rng* r, gsl_vector* x); +void hollow_cone_random_vector (const gsl_rng* r, const gsl_vector* mean, double theta_min, double theta_max, gsl_vector* x); +void subsampling_random_vector (const gsl_rng* r, const gsl_vector* mean, double theta_max, gsl_vector* x); + +double planar_angle_to_solid_angle (double planar_angle, unsigned int dimension); +double solid_angle_to_planar_angle (double solid_angle, unsigned int dimension); + +#endif -- cgit v1.2.3