A class used to generate a Beta distribution. More...
#include <Beta.h>
Public Types | |
typedef DataFileName | DataFileParameterType |
Public Member Functions | |
Beta (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 | betaFunction (const Real &a, const Real &b) |
Beta function: B(a,b) = Gamma(a)Gamma(b)/Gamma(a+b) More... | |
static Real | incompleteBeta (const Real &a, const Real &b, const Real &x) |
Lower incomplete beta function. More... | |
static Real | incompleteBetaInv (const Real &a, const Real &b, const Real &p) |
Inverse of lower incomplete beta 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 parameter 1. More... | |
const Real & | _beta |
Shape parameter 2. 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 |
Beta::Beta | ( | const InputParameters & | parameters | ) |
Beta function: B(a,b) = Gamma(a)Gamma(b)/Gamma(a+b)
Definition at line 76 of file Beta.C.
Referenced by incompleteBeta(), incompleteBetaInv(), StudentT::pdf(), and pdf().
Lower incomplete beta function.
Non-boost implementation from: Section 6.4 of https://www.cec.uchile.cl/cinetica/pcordero/MC_libros/NumericalRecipesinC.pdf
Definition at line 82 of file Beta.C.
Referenced by cdf(), StudentT::cdf(), FDistribution::cdf(), and incompleteBetaInv().
Inverse of lower incomplete beta function.
Non-boost implementation uses Newton-Raphson to find root of incompleteBeta(a, b, x) - p
Definition at line 124 of file Beta.C.
Referenced by quantile(), StudentT::quantile(), and FDistribution::quantile().
Definition at line 52 of file Beta.C.
|
static |
Definition at line 17 of file Beta.C.
|
protected |
Shape parameter 1.
Definition at line 48 of file Beta.h.
Referenced by cdf(), pdf(), and quantile().
|
protected |
Shape parameter 2.
Definition at line 50 of file Beta.h.
Referenced by cdf(), pdf(), and quantile().