ADMB Documentation  11.1.2277
 All Classes Files Functions Variables Typedefs Friends Defines
model14.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id: model14.cpp 1919 2014-04-22 22:02:01Z johnoel $
00003  *
00004  * Author: David Fournier
00005  * Copyright (c) 2008-2012 Regents of the University of California
00006  */
00007 #include <admodel.h>
00008 
00009   void likeprof_params::set_stepsize(double x)
00010   {
00011     if ( x>0)
00012     {
00013       stepsize=x;
00014     }
00015     else
00016     {
00017       cerr << "Error in likeprof_params::set_stepsize(double x)"
00018        " stepsize must be >0" << endl;
00019     }
00020   }
00021 
00022   void likeprof_params::set_stepnumber(int n)
00023   {
00024     if ( n>0)
00025     {
00026       stepnumber=n;
00027     }
00028     else
00029     {
00030       cerr << "Error in likeprof_params::set_stepnumber(int n)"
00031        " stepnumber must be >0" << endl;
00032     }
00033   }
00034 
00035   double likeprof_params::get_stepsize(void)
00036   {
00037     return stepsize;
00038   }
00039 
00040   int likeprof_params::get_stepnumber(void)
00041   {
00042     return stepnumber;
00043   }