12 #include "libmesh/utility.h"
22 params.addClassDescription(
"Logistic distribution.");
23 params.addRequiredParam<Real>(
"location",
"Location or mean of the distribution (alpha or mu)");
24 params.addRequiredParam<Real>(
"shape",
"Shape of the distribution (beta or s)");
29 : Distribution(parameters), _location(getParam<Real>(
"location")), _shape(getParam<Real>(
"shape"))
36 Real z = std::exp(-(x - location) / shape);
37 return z / (shape * Utility::pow<2>(1.0 + z));
43 Real z = std::exp(-(x - location) / shape);
44 return 1.0 / (1.0 + z);
50 return location - shape * std::log(1.0 / p - 1.0);
56 TIME_SECTION(_perf_pdf);
63 TIME_SECTION(_perf_cdf);
70 TIME_SECTION(_perf_quantile);