![]() |
Stan
2.14.0
probability, sampling & optimization
|
#include <boost/lexical_cast.hpp>#include <boost/random/additive_combine.hpp>#include <boost/random/uniform_real_distribution.hpp>#include <boost/random/variate_generator.hpp>#include <stan/model/gradient.hpp>#include <stan/services/error_codes.hpp>#include <stan/io/array_var_context.hpp>#include <stan/io/chained_var_context.hpp>#include <stan/interface_callbacks/var_context_factory/var_context_factory.hpp>#include <stan/interface_callbacks/writer/base_writer.hpp>#include <stan/services/io/write_error_msg.hpp>#include <stan/math/prim/mat.hpp>#include <cmath>#include <iostream>#include <limits>#include <stdexcept>#include <string>#include <vector>Go to the source code of this file.
Namespaces | |
| stan | |
| Probability, optimization and sampling library. | |
| stan::services | |
| stan::services::init | |
Functions | |
| template<class Model > | |
| bool | stan::services::init::initialize_state_values (Eigen::VectorXd &cont_params, Model &model, interface_callbacks::writer::base_writer &writer) |
| template<class Model > | |
| bool | stan::services::init::initialize_state_zero (Eigen::VectorXd &cont_params, Model &model, interface_callbacks::writer::base_writer &writer) |
| Sets initial state to zero. More... | |
| template<class Model , class RNG > | |
| bool | stan::services::init::initialize_state_random (const double R, Eigen::VectorXd &cont_params, Model &model, RNG &base_rng, interface_callbacks::writer::base_writer &writer) |
| Initializes state to random uniform values within range. More... | |
| template<class ContextFactory , class Model , class RNG > | |
| bool | stan::services::init::initialize_state_source_and_random (const std::string &source, double R, Eigen::VectorXd &cont_params, Model &model, RNG &base_rng, interface_callbacks::writer::base_writer &writer, ContextFactory &context_factory) |
| Creates the initial state. More... | |
| template<class ContextFactory , class Model , class RNG > | |
| bool | stan::services::init::initialize_state_source (const std::string source, Eigen::VectorXd &cont_params, Model &model, RNG &base_rng, interface_callbacks::writer::base_writer &writer, ContextFactory &context_factory, bool enable_random_init=false, double R=2) |
| Creates the initial state using the source parameter. More... | |
| bool | stan::services::init::get_double_from_string (const std::string &s, double &val) |
| Converts string to double. More... | |
| template<class ContextFactory , class Model , class RNG > | |
| bool | stan::services::init::initialize_state (const std::string &init, Eigen::VectorXd &cont_params, Model &model, RNG &base_rng, interface_callbacks::writer::base_writer &writer, ContextFactory &context_factory, bool enable_random_init=false, double init_r=2) |
| Creates the initial state. More... | |