20 "lower_bound", -std::numeric_limits<Real>::max(),
"Lower bound of the distribution ");
22 "upper_bound", std::numeric_limits<Real>::max(),
"Upper bound of the distribution ");
28 _lower_bound(getParam<
Real>(
"lower_bound")),
29 _upper_bound(getParam<
Real>(
"upper_bound"))
32 mooseError(
"lower_bound in truncated normal distribution must be less than upper_bound.");
39 const Real & lower_bound,
40 const Real & upper_bound)
42 if (x <= lower_bound || x >= upper_bound)
53 const Real & lower_bound,
54 const Real & upper_bound)
57 if (x <= lower_bound || x >= upper_bound)
68 const Real & lower_bound,
69 const Real & upper_bound)
const Real & _standard_deviation
The standard deviation of the distribution (sigma)
virtual Real cdf(const Real &x) const override
A class used to generate a normal distribution.
TruncatedNormal(const InputParameters ¶meters)
A class used to generate a truncated normal distribution.
virtual Real cdf(const Real &x) const override
static InputParameters validParams()
virtual Real pdf(const Real &x) const override
const Real & _lower_bound
The lower bound for the distribution.
const Real & _upper_bound
The upper bound for the distribution.
const std::vector< double > x
virtual Real pdf(const Real &x) const override
static InputParameters validParams()
virtual Real quantile(const Real &p) const override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real & _mean
The mean (or expectation) of the distribution (mu)
registerMooseObject("StochasticToolsApp", TruncatedNormal)
void mooseError(Args &&... args) const
virtual Real quantile(const Real &p) const override