A class used to generate a Gamma distribution. More...
#include <Gamma.h>
Public Types | |
typedef DataFileName | DataFileParameterType |
Public Member Functions | |
Gamma (const InputParameters ¶meters) | |
virtual Real | pdf (const Real &x) const override |
virtual Real | cdf (const Real &x) const override |
virtual Real | quantile (const Real &p) const override |
virtual Real | median () const |
virtual bool | enabled () const |
std::shared_ptr< MooseObject > | getSharedPtr () |
std::shared_ptr< const MooseObject > | getSharedPtr () const |
MooseApp & | getMooseApp () const |
const std::string & | type () const |
virtual const std::string & | name () const |
std::string | typeAndName () const |
std::string | errorPrefix (const std::string &error_type) const |
void | callMooseError (std::string msg, const bool with_prefix) const |
MooseObjectParameterName | uniqueParameterName (const std::string ¶meter_name) const |
const InputParameters & | parameters () const |
MooseObjectName | uniqueName () const |
const T & | getParam (const std::string &name) const |
std::vector< std::pair< T1, T2 > > | getParam (const std::string ¶m1, const std::string ¶m2) const |
const T * | queryParam (const std::string &name) const |
const T & | getRenamedParam (const std::string &old_name, const std::string &new_name) const |
T | getCheckedPointerParam (const std::string &name, const std::string &error_string="") const |
bool | isParamValid (const std::string &name) const |
bool | isParamSetByUser (const std::string &nm) const |
void | paramError (const std::string ¶m, Args... args) const |
void | paramWarning (const std::string ¶m, Args... args) const |
void | paramInfo (const std::string ¶m, Args... args) const |
void | connectControllableParams (const std::string ¶meter, const std::string &object_type, const std::string &object_name, const std::string &object_parameter) const |
void | mooseError (Args &&... args) const |
void | mooseErrorNonPrefixed (Args &&... args) const |
void | mooseDocumentedError (const std::string &repo_name, const unsigned int issue_num, Args &&... args) const |
void | mooseWarning (Args &&... args) const |
void | mooseWarningNonPrefixed (Args &&... args) const |
void | mooseDeprecated (Args &&... args) const |
void | mooseInfo (Args &&... args) const |
std::string | getDataFileName (const std::string ¶m) const |
std::string | getDataFileNameByName (const std::string &relative_path) const |
std::string | getDataFilePath (const std::string &relative_path) const |
PerfGraph & | perfGraph () |
const Parallel::Communicator & | comm () const |
processor_id_type | n_processors () const |
processor_id_type | processor_id () const |
Static Public Member Functions | |
static InputParameters | validParams () |
static Real | pdf (const Real &x, const Real &alpha, const Real &beta) |
static Real | cdf (const Real &x, const Real &alpha, const Real &beta) |
static Real | quantile (const Real &p, const Real &alpha, const Real &beta) |
static Real | incompleteGamma (const Real &a, const Real &x) |
Lower incomplete gamma function. More... | |
static Real | incompleteGammaInv (const Real &a, const Real &p) |
Inverse of lower incomplete gamma function. More... | |
Public Attributes | |
const ConsoleStream | _console |
Protected Member Functions | |
PerfID | registerTimedSection (const std::string §ion_name, const unsigned int level) const |
PerfID | registerTimedSection (const std::string §ion_name, const unsigned int level, const std::string &live_message, const bool print_dots=true) const |
std::string | timedSectionName (const std::string §ion_name) const |
Protected Attributes | |
const Real & | _alpha |
Shape. More... | |
const Real & | _theta |
Scaling. More... | |
const bool & | _enabled |
MooseApp & | _app |
const std::string | _type |
const std::string | _name |
const InputParameters & | _pars |
Factory & | _factory |
ActionFactory & | _action_factory |
MooseApp & | _pg_moose_app |
const std::string | _prefix |
const Parallel::Communicator & | _communicator |
Gamma::Gamma | ( | const InputParameters & | parameters | ) |
Definition at line 43 of file Gamma.C.
Lower incomplete gamma function.
Non-boost implementation from: Temme, N. (1994). A Set of Algorithms for the Incomplete Gamma Functions. Probability in the Engineering and Informational Sciences, 8(2), 291-307.
Definition at line 76 of file Gamma.C.
Referenced by cdf(), and incompleteGammaInv().
Inverse of lower incomplete gamma function.
Non-boost implementation uses Newton-Raphson to find root of incompleteGamma(a, x) - p
Definition at line 98 of file Gamma.C.
Referenced by quantile().
Definition at line 52 of file Gamma.C.
|
static |
Definition at line 17 of file Gamma.C.
|
protected |
|
protected |