www.mooseframework.org
LogisticDistribution.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "Distribution.h"
13 
15 
16 template <>
17 InputParameters validParams<LogisticDistribution>();
18 
22 class LogisticDistribution : public Distribution
23 {
24 public:
25  static InputParameters validParams();
26 
27  LogisticDistribution(const InputParameters & parameters);
28 
29  virtual Real pdf(const Real & x) const override;
30  virtual Real cdf(const Real & x) const override;
31  virtual Real quantile(const Real & p) const override;
32 
33  static Real pdf(const Real & x, const Real & location, const Real & shape);
34  static Real cdf(const Real & x, const Real & location, const Real & shape);
35  static Real quantile(const Real & p, const Real & location, const Real & shape);
36 
37 protected:
39  const Real & _location;
40 
42  const Real & _shape;
43 };
LogisticDistribution::_shape
const Real & _shape
The shape of the distribution (beta or s)
Definition: LogisticDistribution.h:42
LogisticDistribution::validParams
static InputParameters validParams()
Definition: LogisticDistribution.C:19
LogisticDistribution::pdf
virtual Real pdf(const Real &x) const override
Definition: LogisticDistribution.C:54
LogisticDistribution::quantile
virtual Real quantile(const Real &p) const override
Definition: LogisticDistribution.C:68
LogisticDistribution
A class used to generate a logistic distribution.
Definition: LogisticDistribution.h:22
LogisticDistribution::cdf
virtual Real cdf(const Real &x) const override
Definition: LogisticDistribution.C:61
LogisticDistribution::_location
const Real & _location
The location or mean of the distribution (alpha or mu)
Definition: LogisticDistribution.h:39
validParams< LogisticDistribution >
InputParameters validParams< LogisticDistribution >()
LogisticDistribution::LogisticDistribution
LogisticDistribution(const InputParameters &parameters)
Definition: LogisticDistribution.C:28