From ac33f97e8bc2262939339de704e267a29aa1f7a3 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Wed, 3 Feb 2021 13:03:22 +0530 Subject: Add Gaussian n-d random functions. * gaussian-nd-random.c, gaussian-nd-random.h: New files. --- gaussian-nd-random.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 gaussian-nd-random.h (limited to 'gaussian-nd-random.h') diff --git a/gaussian-nd-random.h b/gaussian-nd-random.h new file mode 100644 index 0000000..951cb10 --- /dev/null +++ b/gaussian-nd-random.h @@ -0,0 +1,19 @@ +#ifndef GAUSSIAN_ND_RANDOM_H +#define GAUSSIAN_ND_RANDOM_H + +#include +#include +#include + +double planar_angle_to_standard_deviation +(double mean, double theta_max, double truncation, unsigned int dimension); + +unsigned int shifted_gaussian_random_vector +(const gsl_rng* r, const gsl_vector* mean, + double theta_max, double truncation, gsl_vector* x); + +double shifted_gaussian_pdf +(double theta, double mean, double theta_max, + double truncation, unsigned int dimension, gsl_integration_workspace* w); + +#endif -- cgit v1.2.3