Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
arg_thin.hpp
Go to the documentation of this file.
1 #ifndef STAN__GM__ARGUMENTS__THIN__HPP
2 #define STAN__GM__ARGUMENTS__THIN__HPP
3 
5 
6 namespace stan {
7 
8  namespace gm {
9 
10  class arg_thin: public int_argument {
11 
12  public:
13 
15  _name = "thin";
16  _description = "Period between saved samples";
17  _validity = "0 < thin";
18  _default = "1";
19  _default_value = 1;
20  _constrained = true;
21  _good_value = 2.0;
22  _bad_value = -1.0;
24  };
25 
26  bool is_valid(int value) { return value > 0; }
27 
28  };
29 
30  } // gm
31 
32 } // stan
33 
34 #endif
35 
std::string _name
Definition: argument.hpp:76
bool is_valid(int value)
Definition: arg_thin.hpp:26
std::string _description
Definition: argument.hpp:77

     [ Stan Home Page ] © 2011–2014, Stan Development Team.