Stan
2.10.0
probability, sampling & optimization
Main Page
Namespaces
Classes
Files
File List
File Members
src
stan
services
arguments
arg_num_samples.hpp
Go to the documentation of this file.
1
#ifndef STAN_SERVICES_ARGUMENTS_ARG_NUM_SAMPLES_HPP
2
#define STAN_SERVICES_ARGUMENTS_ARG_NUM_SAMPLES_HPP
3
4
#include <
stan/services/arguments/singleton_argument.hpp
>
5
6
namespace
stan
{
7
namespace
services {
8
9
class
arg_num_samples
:
public
int_argument
{
10
public
:
11
arg_num_samples
():
int_argument
() {
12
_name
=
"num_samples"
;
13
_description
=
"Number of sampling iterations"
;
14
_validity
=
"0 <= num_samples"
;
15
_default
=
"1000"
;
16
_default_value
= 1000;
17
_constrained
=
true
;
18
_good_value
= 2.0;
19
_bad_value
= -1.0;
20
_value
=
_default_value
;
21
}
22
23
bool
is_valid
(
int
value
) {
return
value >= 0; }
24
};
25
26
}
// services
27
}
// stan
28
29
#endif
30
stan
Probability, optimization and sampling library.
Definition:
base_interrupt.hpp:4
stan::services::singleton_argument::_validity
std::string _validity
Definition:
singleton_argument.hpp:144
stan::services::valued_argument::_default
std::string _default
Definition:
valued_argument.hpp:42
stan::services::argument::_description
std::string _description
Definition:
argument.hpp:84
stan::services::argument::_name
std::string _name
Definition:
argument.hpp:83
stan::services::singleton_argument::value
T value()
Definition:
singleton_argument.hpp:121
stan::services::arg_num_samples
Definition:
arg_num_samples.hpp:9
stan::services::singleton_argument::_value
T _value
Definition:
singleton_argument.hpp:147
stan::services::singleton_argument::_constrained
bool _constrained
Definition:
singleton_argument.hpp:150
stan::services::singleton_argument::_bad_value
T _bad_value
Definition:
singleton_argument.hpp:153
stan::services::arg_num_samples::arg_num_samples
arg_num_samples()
Definition:
arg_num_samples.hpp:11
stan::services::singleton_argument::_default_value
T _default_value
Definition:
singleton_argument.hpp:148
stan::services::singleton_argument
Definition:
singleton_argument.hpp:45
singleton_argument.hpp
stan::services::arg_num_samples::is_valid
bool is_valid(int value)
Definition:
arg_num_samples.hpp:23
stan::services::singleton_argument::_good_value
T _good_value
Definition:
singleton_argument.hpp:152
[
Stan Home Page
]
© 2011–2016, Stan Development Team.