Stan  2.10.0
probability, sampling & optimization
arg_thin.hpp
Go to the documentation of this file.
1 #ifndef STAN_SERVICES_ARGUMENTS_ARG_THIN_HPP
2 #define STAN_SERVICES_ARGUMENTS_ARG_THIN_HPP
3 
5 
6 namespace stan {
7  namespace services {
8 
9  class arg_thin: public int_argument {
10  public:
12  _name = "thin";
13  _description = "Period between saved samples";
14  _validity = "0 < thin";
15  _default = "1";
16  _default_value = 1;
17  _constrained = true;
18  _good_value = 2.0;
19  _bad_value = -1.0;
21  }
22 
23  bool is_valid(int value) { return value > 0; }
24  };
25 
26  } // services
27 } // stan
28 
29 #endif
30 
bool is_valid(int value)
Definition: arg_thin.hpp:23
Probability, optimization and sampling library.
std::string _description
Definition: argument.hpp:84

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