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

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

#include <NormalDistribution.h>

Inheritance diagram for NormalDistribution:
[legend]

Public Member Functions

 NormalDistribution (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::normal_distribution< Real > > _distribution_unique_ptr
 This must be defined by the child class in the constructor. More...
 

Detailed Description

A class used to generate Normal distribution via Boost.

Definition at line 21 of file NormalDistribution.h.

Constructor & Destructor Documentation

NormalDistribution::NormalDistribution ( const InputParameters &  parameters)

Definition at line 21 of file NormalDistribution.C.

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

Member Function Documentation

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

Member Data Documentation

std::unique_ptr<boost::math::normal_distribution< Real > > BoostDistribution< boost::math::normal_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 NormalDistribution().


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