www.mooseframework.org
Public Member Functions | Protected Attributes | List of all members
WeibullDistribution Class Reference

A class used to generate Weibull distribution via Boost. More...

#include <WeibullDistribution.h>

Inheritance diagram for WeibullDistribution:
[legend]

Public Member Functions

 WeibullDistribution (const InputParameters &parameters)
 
virtual Real pdf (const Real &x) override
 
virtual Real cdf (const Real &x) override
 
virtual Real quantile (const Real &y) override
 

Protected Attributes

std::unique_ptr< boost::math::weibull_distribution< Real > > _distribution_unique_ptr
 This must be defined by the child class in the constructor. More...
 

Detailed Description

A class used to generate Weibull distribution via Boost.

Definition at line 21 of file WeibullDistribution.h.

Constructor & Destructor Documentation

WeibullDistribution::WeibullDistribution ( const InputParameters &  parameters)

Definition at line 21 of file WeibullDistribution.C.

23 {
24  _distribution_unique_ptr = libmesh_make_unique<boost::math::weibull_distribution<Real>>(
25  getParam<Real>("shape"), getParam<Real>("scale"));
26 }
A class used to as a base for distributions defined by Boost.
std::unique_ptr< boost::math::weibull_distribution< Real > > _distribution_unique_ptr
This must be defined by the child class in the constructor.

Member Function Documentation

virtual Real BoostDistribution< boost::math::weibull_distribution< Real > >::cdf ( const Real &  x)
overridevirtualinherited
virtual Real BoostDistribution< boost::math::weibull_distribution< Real > >::pdf ( const Real &  x)
overridevirtualinherited
virtual Real BoostDistribution< boost::math::weibull_distribution< Real > >::quantile ( const Real &  y)
overridevirtualinherited

Member Data Documentation

std::unique_ptr<boost::math::weibull_distribution< Real > > BoostDistribution< boost::math::weibull_distribution< Real > >::_distribution_unique_ptr
protectedinherited

This must be defined by the child class in the constructor.

Definition at line 55 of file BoostDistribution.h.

Referenced by WeibullDistribution().


The documentation for this class was generated from the following files: