Stan
2.5.0
probability, sampling & optimization
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
stan
gm
arguments
arg_test_grad_eps.hpp
Go to the documentation of this file.
1
#ifndef STAN__GM__ARGUMENTS__TEST__GRAD__EPS__HPP
2
#define STAN__GM__ARGUMENTS__TEST__GRAD__EPS__HPP
3
4
#include <
stan/gm/arguments/singleton_argument.hpp
>
5
6
namespace
stan {
7
8
namespace
gm {
9
10
class
arg_test_grad_eps
:
public
real_argument
{
11
12
public
:
13
14
arg_test_grad_eps
():
real_argument
() {
15
_name
=
"epsilon"
;
16
_description
=
"Finite difference step size"
;
17
_validity
=
"0 < epsilon"
;
18
_default
=
"1e-6"
;
19
_default_value
= 1
e
-6;
20
_constrained
=
true
;
21
_good_value
= 1
e
-6;
22
_bad_value
= -1.0;
23
_value
=
_default_value
;
24
};
25
26
bool
is_valid
(
double
value
) {
return
value > 0; }
27
28
};
29
30
}
// gm
31
32
}
// stan
33
34
#endif
stan::gm::arg_test_grad_eps::is_valid
bool is_valid(double value)
Definition:
arg_test_grad_eps.hpp:26
stan::gm::singleton_argument::_validity
std::string _validity
Definition:
singleton_argument.hpp:151
stan::gm::singleton_argument::_value
T _value
Definition:
singleton_argument.hpp:154
stan::gm::valued_argument::_default
std::string _default
Definition:
valued_argument.hpp:47
stan::gm::singleton_argument
Definition:
singleton_argument.hpp:44
stan::gm::singleton_argument::_bad_value
T _bad_value
Definition:
singleton_argument.hpp:160
stan::gm::singleton_argument::value
T value()
Definition:
singleton_argument.hpp:124
stan::gm::argument::_name
std::string _name
Definition:
argument.hpp:76
stan::gm::arg_test_grad_eps::arg_test_grad_eps
arg_test_grad_eps()
Definition:
arg_test_grad_eps.hpp:14
stan::gm::singleton_argument::_constrained
bool _constrained
Definition:
singleton_argument.hpp:157
stan::math::e
double e()
Return the base of the natural logarithm.
Definition:
constants.hpp:86
stan::gm::singleton_argument::_default_value
T _default_value
Definition:
singleton_argument.hpp:155
singleton_argument.hpp
stan::gm::singleton_argument::_good_value
T _good_value
Definition:
singleton_argument.hpp:159
stan::gm::arg_test_grad_eps
Definition:
arg_test_grad_eps.hpp:10
stan::gm::argument::_description
std::string _description
Definition:
argument.hpp:77
[
Stan Home Page
]
© 2011–2014, Stan Development Team.