1 /* monte/gsl_monte_miser.h
3 * Copyright (C) 1996, 1997, 1998, 1999, 2000 Michael Booth
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.
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.
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.
22 #ifndef __GSL_MONTE_MISER_H__
23 #define __GSL_MONTE_MISER_H__
25 #include <gsl/gsl_rng.h>
26 #include <gsl/gsl_monte.h>
27 #include <gsl/gsl_monte_plain.h>
32 # define __BEGIN_DECLS extern "C" {
33 # define __END_DECLS }
35 # define __BEGIN_DECLS /* empty */
36 # define __END_DECLS /* empty */
43 size_t min_calls_per_bisection;
65 } gsl_monte_miser_state;
67 int gsl_monte_miser_integrate(gsl_monte_function * f,
68 const double xl[], const double xh[],
69 size_t dim, size_t calls,
71 gsl_monte_miser_state* state,
72 double *result, double *abserr);
74 gsl_monte_miser_state* gsl_monte_miser_alloc(size_t dim);
76 int gsl_monte_miser_init(gsl_monte_miser_state* state);
78 void gsl_monte_miser_free(gsl_monte_miser_state* state);
83 #endif /* __GSL_MONTE_MISER_H__ */