Stan
2.10.0
probability, sampling & optimization
Main Page
Namespaces
Classes
Files
File List
File Members
src
stan
services
arguments
arg_int_time.hpp
Go to the documentation of this file.
1
#ifndef STAN_SERVICES_ARGUMENTS_ARG_INT_TIME_HPP
2
#define STAN_SERVICES_ARGUMENTS_ARG_INT_TIME_HPP
3
4
#include <
stan/services/arguments/singleton_argument.hpp
>
5
6
namespace
stan
{
7
namespace
services {
8
9
class
arg_int_time
:
public
real_argument
{
10
public
:
11
arg_int_time
():
real_argument
() {
12
_name
=
"int_time"
;
13
_description
=
"Total integration time for Hamiltonian evolution"
;
14
_validity
=
"0 < int_time"
;
15
_default
=
"2 * pi"
;
16
_default_value
= 6.28318530717959;
17
_constrained
=
true
;
18
_good_value
= 2.0;
19
_bad_value
= -1.0;
20
_value
=
_default_value
;
21
}
22
23
bool
is_valid
(
double
value
) {
return
value > 0; }
24
};
25
26
}
// services
27
}
// stan
28
29
#endif
30
stan::services::arg_int_time::arg_int_time
arg_int_time()
Definition:
arg_int_time.hpp:11
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_int_time
Definition:
arg_int_time.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::arg_int_time::is_valid
bool is_valid(double value)
Definition:
arg_int_time.hpp:23
stan::services::singleton_argument::_bad_value
T _bad_value
Definition:
singleton_argument.hpp:153
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::singleton_argument::_good_value
T _good_value
Definition:
singleton_argument.hpp:152
[
Stan Home Page
]
© 2011–2016, Stan Development Team.