| 1 | /* monte/gsl_monte_vegas.h |
| 2 | * |
| 3 | * Copyright (C) 1996, 1997, 1998, 1999, 2000 Michael Booth |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 3 of the License, or (at |
| 8 | * your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, but |
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program; if not, write to the Free Software |
| 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 18 | */ |
| 19 | |
| 20 | /* header for the gsl "vegas" routines. Mike Booth, May 1998 */ |
| 21 | |
| 22 | #ifndef __GSL_MONTE_VEGAS_H__ |
| 23 | #define __GSL_MONTE_VEGAS_H__cxx . . $ `external/gsl/gsl_monte_vegas.h:23:9`! |
| 24 | |
| 25 | #include "gsl_rng.h"cxx . . $ `<file>/external/gsl/gsl_rng.h`/ |
| 26 | #include "gsl_monte.h"cxx . . $ `<file>/external/gsl/gsl_monte.h`/ |
| 27 | |
| 28 | #undef __BEGIN_DECLScxx . . $ `external/gsl/gsl_monte.h:32:10`! |
| 29 | #undef __END_DECLScxx . . $ `external/gsl/gsl_monte.h:33:10`! |
| 30 | #ifdef __cplusplus |
| 31 | # define __BEGIN_DECLS extern "C" { |
| 32 | # define __END_DECLS } |
| 33 | #else |
| 34 | # define __BEGIN_DECLScxx . . $ `external/gsl/gsl_monte_vegas.h:34:10`! /* empty */ |
| 35 | # define __END_DECLScxx . . $ `external/gsl/gsl_monte_vegas.h:35:10`! /* empty */ |
| 36 | #endif |
| 37 | |
| 38 | __BEGIN_DECLScxx . . $ `external/gsl/gsl_monte_vegas.h:34:10`! |
| 39 | |
| 40 | enumcxx . . $ $anonymous_type_cf9cc34d9df6719e_0# {GSL_VEGAS_MODE_IMPORTANCEcxx . . $ GSL_VEGAS_MODE_IMPORTANCE. = 1, |
| 41 | GSL_VEGAS_MODE_IMPORTANCE_ONLYcxx . . $ GSL_VEGAS_MODE_IMPORTANCE_ONLY. = 0, |
| 42 | GSL_VEGAS_MODE_STRATIFIEDcxx . . $ GSL_VEGAS_MODE_STRATIFIED. = -1}; |
| 43 | |
| 44 | typedef structcxx . . $ $anonymous_type_cf9cc34d9df6719e_1# { |
| 45 | /* grid */ |
| 46 | size_t dimcxx . . $ $anonymous_type_cf9cc34d9df6719e_1#dim.; |
| 47 | size_t bins_maxcxx . . $ $anonymous_type_cf9cc34d9df6719e_1#bins_max.; |
| 48 | unsigned int binscxx . . $ $anonymous_type_cf9cc34d9df6719e_1#bins.; |
| 49 | unsigned int boxescxx . . $ $anonymous_type_cf9cc34d9df6719e_1#boxes.; /* these are both counted along the axes */ |
| 50 | double * xicxx . . $ $anonymous_type_cf9cc34d9df6719e_1#xi.; |
| 51 | double * xincxx . . $ $anonymous_type_cf9cc34d9df6719e_1#xin.; |
| 52 | double * delxcxx . . $ $anonymous_type_cf9cc34d9df6719e_1#delx.; |
| 53 | double * weightcxx . . $ $anonymous_type_cf9cc34d9df6719e_1#weight.; |
| 54 | double volcxx . . $ $anonymous_type_cf9cc34d9df6719e_1#vol.; |
| 55 | |
| 56 | double * xcxx . . $ $anonymous_type_cf9cc34d9df6719e_1#x.; |
| 57 | int * bincxx . . $ $anonymous_type_cf9cc34d9df6719e_1#bin.; |
| 58 | int * boxcxx . . $ $anonymous_type_cf9cc34d9df6719e_1#box.; |
| 59 | |
| 60 | /* distribution */ |
| 61 | double * dcxx . . $ $anonymous_type_cf9cc34d9df6719e_1#d.; |
| 62 | |
| 63 | /* control variables */ |
| 64 | double alphacxx . . $ $anonymous_type_cf9cc34d9df6719e_1#alpha.; |
| 65 | int modecxx . . $ $anonymous_type_cf9cc34d9df6719e_1#mode.; |
| 66 | int verbosecxx . . $ $anonymous_type_cf9cc34d9df6719e_1#verbose.; |
| 67 | unsigned int iterationscxx . . $ $anonymous_type_cf9cc34d9df6719e_1#iterations.; |
| 68 | int stagecxx . . $ $anonymous_type_cf9cc34d9df6719e_1#stage.; |
| 69 | |
| 70 | /* scratch variables preserved between calls to vegas1/2/3 */ |
| 71 | double jaccxx . . $ $anonymous_type_cf9cc34d9df6719e_1#jac.; |
| 72 | double wtd_int_sumcxx . . $ $anonymous_type_cf9cc34d9df6719e_1#wtd_int_sum.; |
| 73 | double sum_wgtscxx . . $ $anonymous_type_cf9cc34d9df6719e_1#sum_wgts.; |
| 74 | double chi_sumcxx . . $ $anonymous_type_cf9cc34d9df6719e_1#chi_sum.; |
| 75 | double chisqcxx . . $ $anonymous_type_cf9cc34d9df6719e_1#chisq.; |
| 76 | |
| 77 | double resultcxx . . $ $anonymous_type_cf9cc34d9df6719e_1#result.; |
| 78 | double sigmacxx . . $ $anonymous_type_cf9cc34d9df6719e_1#sigma.; |
| 79 | |
| 80 | unsigned int it_startcxx . . $ $anonymous_type_cf9cc34d9df6719e_1#it_start.; |
| 81 | unsigned int it_numcxx . . $ $anonymous_type_cf9cc34d9df6719e_1#it_num.; |
| 82 | unsigned int samplescxx . . $ $anonymous_type_cf9cc34d9df6719e_1#samples.; |
| 83 | unsigned int calls_per_boxcxx . . $ $anonymous_type_cf9cc34d9df6719e_1#calls_per_box.; |
| 84 | |
| 85 | FILEcxx . . $ FILE# * ostreamcxx . . $ $anonymous_type_cf9cc34d9df6719e_1#ostream.; |
| 86 | |
| 87 | } gsl_monte_vegas_statecxx . . $ gsl_monte_vegas_state#; |
| 88 | |
| 89 | int gsl_monte_vegas_integratecxx . . $ gsl_monte_vegas_integrate(2c99caf80f7a57fd).(gsl_monte_functioncxx . . $ gsl_monte_function# * f, |
| 90 | double xl[], double xu[], |
| 91 | size_t dim, size_t calls, |
| 92 | gsl_rngcxx . . $ gsl_rng# * r, |
| 93 | gsl_monte_vegas_statecxx . . $ gsl_monte_vegas_state# *state, |
| 94 | double* result, double* abserr); |
| 95 | |
| 96 | gsl_monte_vegas_statecxx . . $ gsl_monte_vegas_state#* gsl_monte_vegas_alloccxx . . $ gsl_monte_vegas_alloc(73dbd761d9dc0cb6).(size_t dim); |
| 97 | |
| 98 | int gsl_monte_vegas_initcxx . . $ gsl_monte_vegas_init(c63718f177fa0337).(gsl_monte_vegas_statecxx . . $ gsl_monte_vegas_state#* state); |
| 99 | |
| 100 | void gsl_monte_vegas_freecxx . . $ gsl_monte_vegas_free(425cc139bb88cee). (gsl_monte_vegas_statecxx . . $ gsl_monte_vegas_state#* state); |
| 101 | |
| 102 | __END_DECLScxx . . $ `external/gsl/gsl_monte_vegas.h:35:10`! |
| 103 | |
| 104 | #endif /* __GSL_MONTE_VEGAS_H__ */ |
| 105 |