Stan  2.10.0
probability, sampling & optimization
arg_variational_num_samples.hpp
Go to the documentation of this file.
1 #ifndef STAN_SERVICES_ARGUMENTS_VARIATIONAL_NUM_SAMPLES_HPP
2 #define STAN_SERVICES_ARGUMENTS_VARIATIONAL_NUM_SAMPLES_HPP
3 
5 
6 #include <boost/lexical_cast.hpp>
7 #include <string>
8 
9 namespace stan {
10 
11  namespace services {
12 
14  public:
16  const char *desc,
17  double def): int_argument() {
18  _name = name;
19  _description = desc;
20  _validity = "0 < num_samples";
21  _default = boost::lexical_cast<std::string>(def);
22  _default_value = def;
23  _constrained = true;
24  _good_value = 100.0;
25  _bad_value = -1.0;
27  }
28  bool is_valid(int value) { return value > 0; }
29  };
30  } // services
31 } // stan
32 
33 #endif
arg_variational_num_samples(const char *name, const char *desc, double def)
Probability, optimization and sampling library.
std::string _description
Definition: argument.hpp:84
std::string name() const
Definition: argument.hpp:26

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