1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#ifndef EXTENT_SAMPLING_H
#define EXTENT_SAMPLING_H
#include <gsl/gsl_rng.h>
#include <gsl/gsl_rstat.h>
#include <gsl/gsl_vector.h>
typedef double (*extent_oracle_t) (const gsl_vector*);
typedef double (*integrand_t) (double, const gsl_vector*);
void init_random (void);
double volume
(extent_oracle_t extent_oracle, double true_volume,
const gsl_rng* r, unsigned int dimension, double rtol,
gsl_rstat_workspace* stats);
double volume_window
(extent_oracle_t extent_oracle, double true_volume,
const gsl_rng* r, unsigned int dimension, double rtol,
unsigned int* number_of_samples);
double integral
(integrand_t integrand, extent_oracle_t extent_oracle, double true_integral,
const gsl_rng* r, unsigned int dimension, double rtol,
gsl_rstat_workspace* stats);
double volume_cone
(extent_oracle_t extent_oracle, const gsl_rng* r,
const gsl_vector* mean, double omega_min, double omega_max,
unsigned int number_of_samples, double* variance);
double volume_experiment
(extent_oracle_t extent_oracle, const gsl_rng* r,
const gsl_vector* mean, unsigned int samples_per_cone,
double solid_angle_factor, double solid_angle_threshold_exponent_factor,
unsigned int* number_of_samples);
#endif
|