Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
arg_test_grad_err.hpp
Go to the documentation of this file.
1 #ifndef STAN__GM__ARGUMENTS__TEST__GRAD__ERR__HPP
2 #define STAN__GM__ARGUMENTS__TEST__GRAD__ERR__HPP
3 
5 
6 namespace stan {
7 
8  namespace gm {
9 
11 
12  public:
13 
15  _name = "error";
16  _description = "Error threshold";
17  _validity = "0 < error";
18  _default = "1e-6";
19  _default_value = 1e-6;
20  _constrained = true;
21  _good_value = 1e-6;
22  _bad_value = -1.0;
24  };
25 
26  bool is_valid(double value) { return value > 0; }
27 
28  };
29 
30  } // gm
31 
32 } // stan
33 
34 #endif
std::string _name
Definition: argument.hpp:76
double e()
Return the base of the natural logarithm.
Definition: constants.hpp:86
std::string _description
Definition: argument.hpp:77

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