Stan  2.14.0
probability, sampling & optimization
sample.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_NODE_SAMPLE_HPP
2 #define STAN_LANG_AST_NODE_SAMPLE_HPP
3 
7 #include <utility>
8 #include <vector>
9 
10 
11 namespace stan {
12  namespace lang {
13 
17  struct sample {
21  sample();
22 
30  sample(expression& e, distribution& dist);
31 
37  bool is_ill_formed() const;
38 
44  bool is_discrete() const;
45 
50 
55 
60 
65  };
66 
67  }
68 }
69 #endif
distribution dist_
Distribution of the variable.
Definition: sample.hpp:54
range truncation_
The truncation range for the distribution.
Definition: sample.hpp:59
Probability, optimization and sampling library.
bool is_ill_formed() const
Return true if the sampling statement is not well formed.
Definition: sample_def.hpp:15
AST node for sampling statements.
Definition: sample.hpp:17
Structure for a distribution with parameters.
AST structure for a range object with a low and high value.
Definition: range.hpp:14
bool is_discrete() const
Return true if the distribution is discrete.
Definition: sample_def.hpp:24
expression expr_
The random variable.
Definition: sample.hpp:49
sample()
Construct an uninitialized sampling statement.
Definition: sample_def.hpp:10
bool is_discrete_
Discreteness flag.
Definition: sample.hpp:64

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