Stochastic Loading Module
|
#include <normal_dist.h>
Public Member Functions | |
NormalDistribution ()=delete | |
NormalDistribution (double mean, double std_dev) | |
virtual | ~NormalDistribution () |
std::string | name () const override |
std::vector< double > | cumulative_dist_func (const std::vector< double > &locations) const override |
std::vector< double > | inv_cumulative_dist_func (const std::vector< double > &probabilities) const override |
Public Member Functions inherited from stochastic::Distribution | |
Distribution ()=default | |
virtual | ~Distribution () |
Distribution (const Distribution &)=delete | |
Distribution & | operator= (const Distribution &)=delete |
Protected Attributes | |
double | mean_ |
double | std_dev_ |
boost::math::normal | distribution_ |
Normal distribution
Definition at line 13 of file normal_dist.h.
|
delete |
Construct standard normal distribution
stochastic::NormalDistribution::NormalDistribution | ( | double | mean, |
double | std_dev | ||
) |
Construct normal distribution with specified mean and standard deviation
[in] | mean | Mean of distribution |
[in] | std_dev | Standard deviation of distribution |
Definition at line 5 of file normal_dist.cc.
|
inlinevirtual |
Virtual destructor
Definition at line 31 of file normal_dist.h.
|
overridevirtual |
Compute the cumulative distribution function (CDF) of the distribution at specified input locations
[in] | locations | Vector containing locations at which to calculate CDF |
Implements stochastic::Distribution.
Definition at line 12 of file normal_dist.cc.
|
overridevirtual |
Compute the inverse cumulative distribution function (ICDF) of the distribution at specified input locations
[in] | probabilities | Vector containing probabilities at which to calculate ICDF |
Implements stochastic::Distribution.
Definition at line 23 of file normal_dist.cc.
|
inlineoverridevirtual |
Get the name of the distribution model
Implements stochastic::Distribution.
Definition at line 37 of file normal_dist.h.
|
protected |
Normal distribution
Definition at line 62 of file normal_dist.h.
|
protected |
Distribution mean
Definition at line 60 of file normal_dist.h.
|
protected |
Distribution standard deviation
Definition at line 61 of file normal_dist.h.