Logo Search packages:      
Sourcecode: gretl version File versions  Download package

monte_carlo.h

/* gretl - The Gnu Regression, Econometrics and Time-series Library
 * Copyright (C) 1999-2000 Ramu Ramanathan and Allin Cottrell
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License 
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License 
 * along with this software; if not, write to the 
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */

/* monte_carlo.h for gretl: handle command loops and conditionals */

#ifndef MONTE_CARLO_H
#define MONTE_CARLO_H

typedef struct LOOPSET_ LOOPSET;

/* functions follow */

int ok_in_loop (int ci, const LOOPSET *loop);

LOOPSET *add_to_loop (char *line, int ci, gretlopt opt,
                  DATAINFO *pdinfo, double ***pZ,
                  LOOPSET *loop, int *loopstack, int *looprun);

void gretl_loop_destroy (LOOPSET *loop);

int loop_exec (LOOPSET *loop, char *line,
             double ***pZ, DATAINFO **ppdinfo, 
             MODEL **models, PRN *prn);

#endif /* MONTE_CARLO_H */

Generated by  Doxygen 1.6.0   Back to index