1 /* monte/gsl_monte_plain.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.
20 /* Plain Monte-Carlo. */
24 #ifndef __GSL_MONTE_PLAIN_H__
25 #define __GSL_MONTE_PLAIN_H__
28 #include <gsl/gsl_monte.h>
29 #include <gsl/gsl_rng.h>
34 # define __BEGIN_DECLS extern "C" {
35 # define __END_DECLS }
37 # define __BEGIN_DECLS /* empty */
38 # define __END_DECLS /* empty */
46 } gsl_monte_plain_state;
49 gsl_monte_plain_integrate (const gsl_monte_function * f,
50 const double xl[], const double xu[],
54 gsl_monte_plain_state * state,
55 double *result, double *abserr);
57 gsl_monte_plain_state* gsl_monte_plain_alloc(size_t dim);
59 int gsl_monte_plain_init(gsl_monte_plain_state* state);
61 void gsl_monte_plain_free (gsl_monte_plain_state* state);
65 #endif /* __GSL_MONTE_PLAIN_H__ */