Stan
2.10.0
probability, sampling & optimization
Main Page
Namespaces
Classes
Files
File List
File Members
src
stan
services
arguments
arg_init.hpp
Go to the documentation of this file.
1
#ifndef STAN_SERVICES_ARGUMENTS_ARG_INIT_HPP
2
#define STAN_SERVICES_ARGUMENTS_ARG_INIT_HPP
3
4
#include <
stan/services/arguments/singleton_argument.hpp
>
5
#include <string>
6
7
namespace
stan
{
8
namespace
services {
9
10
class
arg_init
:
public
string_argument
{
11
public
:
12
arg_init
():
string_argument
() {
13
_name
=
"init"
;
14
_description
= std::string(
"Initialization method: "
)
15
+ std::string(
"\"x\" initializes randomly between [-x, x], "
)
16
+ std::string(
"\"0\" initializes to 0, "
)
17
+ std::string(
"anything else identifies a file of values"
);
18
_default
=
"\"2\""
;
19
_default_value
=
"2"
;
20
_constrained
=
false
;
21
_good_value
=
"../src/test/test-models/test_model.init.R"
;
22
_value
=
_default_value
;
23
}
24
};
25
26
}
// services
27
}
// stan
28
29
#endif
stan::services::arg_init
Definition:
arg_init.hpp:10
stan
Probability, optimization and sampling library.
Definition:
base_interrupt.hpp:4
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:147
stan::services::singleton_argument::_constrained
bool _constrained
Definition:
singleton_argument.hpp:150
stan::services::arg_init::arg_init
arg_init()
Definition:
arg_init.hpp:12
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.