https://mooseframework.inl.gov
Normal.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
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 
17 class Normal : public Distribution
18 {
19 public:
21 
23 
24  virtual Real pdf(const Real & x) const override;
25  virtual Real cdf(const Real & x) const override;
26  virtual Real quantile(const Real & p) const override;
27 
28  static Real pdf(const Real & x, const Real & mean, const Real & std_dev);
29  static Real cdf(const Real & x, const Real & mean, const Real & std_dev);
30  static Real quantile(const Real & p, const Real & mean, const Real & std_dev);
31 
32 protected:
35  static const std::array<Real, 6> _a;
36  static const std::array<Real, 6> _b;
38 
40  const Real & _mean;
41 
44 };
const Real & _standard_deviation
The standard deviation of the distribution (sigma)
Definition: Normal.h:43
virtual Real cdf(const Real &x) const override
Definition: Normal.C:74
A class used to generate a normal distribution.
Definition: Normal.h:17
static InputParameters validParams()
Definition: Normal.C:23
Normal(const InputParameters &parameters)
Definition: Normal.C:33
virtual Real pdf(const Real &x) const override
Definition: Normal.C:68
const std::vector< double > x
static const std::array< Real, 6 > _a
Definition: Normal.h:35
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real & _mean
The mean (or expectation) of the distribution (mu)
Definition: Normal.h:40
static const std::array< Real, 6 > _b
Definition: Normal.h:36
const InputParameters & parameters() const
virtual Real quantile(const Real &p) const override
Definition: Normal.C:80