www.mooseframework.org
BoostNormalDistribution.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
11 
12 registerMooseObject("StochasticToolsApp", BoostNormalDistribution);
13 
14 template <>
15 InputParameters
17 {
18  InputParameters params = validParams<Distribution>();
19  params.addClassDescription("Boost Normal distribution.");
20  params.addRequiredParam<Real>("mean", "Mean of the distribution.");
21  params.addRequiredParam<Real>("standard_deviation", "Standard deviation of the distribution.");
22  return params;
23 }
24 
25 BoostNormalDistribution::BoostNormalDistribution(const InputParameters & parameters)
26  : BoostDistribution<boost::math::normal_distribution<Real>>(parameters)
27 {
28  _distribution_unique_ptr = libmesh_make_unique<boost::math::normal_distribution<Real>>(
29  getParam<Real>("mean"), getParam<Real>("standard_deviation"));
30 }
InputParameters validParams< BoostNormalDistribution >()
A class used to generate Normal distribution via Boost.
registerMooseObject("StochasticToolsApp", BoostNormalDistribution)
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.
BoostNormalDistribution(const InputParameters &parameters)
BoostDistributionDummy normal_distribution