12#include "libmesh/utility.h"
21 params.
addRequiredParam<Real>(
"location",
"Location or mean of the distribution (alpha or mu)");
22 params.
addRequiredParam<Real>(
"shape",
"Shape of the distribution (beta or s)");
27 :
Distribution(parameters), _location(getParam<Real>(
"location")), _shape(getParam<Real>(
"shape"))
34 Real z = std::exp(-(
x - location) / shape);
35 return z / (shape * Utility::pow<2>(1.0 + z));
41 Real z = std::exp(-(
x - location) / shape);
42 return 1.0 / (1.0 + z);
48 return location - shape * std::log(1.0 /
p - 1.0);
const std::vector< double > x
registerMooseObject("StochasticToolsApp", Logistic)
static InputParameters validParams()
A class used to generate a logistic distribution.
static InputParameters validParams()
virtual Real pdf(const Real &x) const override
const Real & _location
The location or mean of the distribution (alpha or mu)
virtual Real quantile(const Real &p) const override
Logistic(const InputParameters ¶meters)
const Real & _shape
The shape of the distribution (beta or s)
virtual Real cdf(const Real &x) const override