12 #include "libmesh/utility.h" 29 _a(getParam<
Real>(
"location")),
30 _b(getParam<
Real>(
"scale")),
31 _c(getParam<
Real>(
"shape"))
36 Weibull::pdf(
const Real &
x,
const Real & location,
const Real & scale,
const Real & shape)
48 Weibull::cdf(
const Real &
x,
const Real & location,
const Real & scale,
const Real & shape)
55 return 1.0 - std::exp(-
std::pow(
y, shape));
60 Weibull::quantile(
const Real & p,
const Real & location,
const Real & scale,
const Real & shape)
62 return location +
scale *
std::pow(-std::log(1 - p), 1.0 / shape);
virtual Real cdf(const Real &x) const override
virtual Real pdf(const Real &x) const override
const std::vector< double > y
const Real & _c
The shape parameter (c or k)
const Real & _a
The location parameter (a or low)
const std::vector< double > x
Weibull(const InputParameters ¶meters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real & _b
The scale parameter (b or lambda)
static InputParameters validParams()
virtual Real quantile(const Real &p) const override
registerMooseObject("StochasticToolsApp", Weibull)
MooseUnits pow(const MooseUnits &, int)
static InputParameters validParams()
A class used to generate a three-parameter Weibull distribution.