Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Functions
initialize_state.hpp File Reference
#include <string>
#include <iostream>
#include <math.h>
#include <stan/math/matrix/Eigen.hpp>
#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/util.hpp>
#include <stan/gm/error_codes.hpp>
#include <stan/common/context_factory.hpp>
#include <stan/common/write_error_msg.hpp>

Go to the source code of this file.

Namespaces

 stan
 Probability, optimization and sampling library.
 
 stan::common
 

Functions

template<class Model >
bool stan::common::initialize_state_zero (Eigen::VectorXd &cont_params, Model &model, std::ostream *output)
 Sets initial state to zero. More...
 
template<class Model , class RNG >
bool stan::common::initialize_state_random (const double R, Eigen::VectorXd &cont_params, Model &model, RNG &base_rng, std::ostream *output)
 Initializes state to random uniform values within range. More...
 
template<class ContextFactory , class Model , class RNG >
bool stan::common::initialize_state_source (const std::string source, Eigen::VectorXd &cont_params, Model &model, RNG &base_rng, std::ostream *output, ContextFactory &context_factory)
 Creates the initial state using the source parameter. More...
 
bool stan::common::get_double_from_string (const std::string &s, double &val)
 Converts string to double. More...
 
template<class ContextFactory , class Model , class RNG >
bool stan::common::initialize_state (const std::string init, Eigen::VectorXd &cont_params, Model &model, RNG &base_rng, std::ostream *output, ContextFactory &context_factory)
 Creates the initial state. More...
 

     [ Stan Home Page ] © 2011–2014, Stan Development Team.