www.mooseframework.org
UniformDistribution.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #ifndef UNIFORMDISTRIBUTION_H
9 #define UNIFORMDISTRIBUTION_H
10 
11 #include "Distribution.h"
12 
14 
15 template <>
16 InputParameters validParams<UniformDistribution>();
20 class UniformDistribution : public Distribution
21 {
22 public:
23  UniformDistribution(const InputParameters & parameters);
24 
25  virtual Real pdf(const Real & x) override;
26  virtual Real cdf(const Real & x) override;
27  virtual Real quantile(const Real & y) override;
28 
29 protected:
31  const Real & _lower_bound;
32 
34  const Real & _upper_bound;
35 };
36 
37 #endif /* UNIFORMDISTRIBUTION_H */
const Real & _upper_bound
The upper bound for the uniform distribution.
const Real & _lower_bound
The lower bound for the uniform distribution.
UniformDistribution(const InputParameters &parameters)
InputParameters validParams< UniformDistribution >()
A class used to generate uniform distribution.
virtual Real pdf(const Real &x) override
virtual Real cdf(const Real &x) override
virtual Real quantile(const Real &y) override