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  LogisticDistribution(const InputParameters & parameters);
26 
27  virtual Real pdf(const Real & x) const override;
28  virtual Real cdf(const Real & x) const override;
29  virtual Real quantile(const Real & p) const override;
30 
31  Real pdf(const Real & x, const Real & location, const Real & shape) const;
32  Real cdf(const Real & x, const Real & location, const Real & shape) const;
33  Real quantile(const Real & p, const Real & location, const Real & shape) const;
34 
35 protected:
37  const Real & _location;
38 
40  const Real & _shape;
41 };
42 
LogisticDistribution(const InputParameters &parameters)
const Real & _location
The location or mean of the distribution (alpha or mu)
virtual Real quantile(const Real &p) const override
virtual Real pdf(const Real &x) const override
virtual Real cdf(const Real &x) const override
const Real & _shape
The shape of the distribution (beta or s)
A class used to generate a logistic distribution.
InputParameters validParams< LogisticDistribution >()