www.mooseframework.org
BoostLognormalDistribution.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", BoostLognormalDistribution);
13 
14 template <>
15 InputParameters
17 {
18  InputParameters params = validParams<Distribution>();
19  params.addClassDescription("Boost Lognormal distribution.");
20  params.addRequiredParam<Real>("location", "The Lognormal location parameter.");
21  params.addRequiredParam<Real>("scale", "The Lognormal scale parameter.");
22  return params;
23 }
24 
25 BoostLognormalDistribution::BoostLognormalDistribution(const InputParameters & parameters)
26  : BoostDistribution<boost::math::lognormal_distribution<Real>>(parameters)
27 {
28  _distribution_unique_ptr = libmesh_make_unique<boost::math::lognormal_distribution<Real>>(
29  getParam<Real>("location"), getParam<Real>("scale"));
30 }
BoostDistributionDummy lognormal_distribution
InputParameters validParams< BoostLognormalDistribution >()
A class used to as a base for distributions defined by Boost.
registerMooseObject("StochasticToolsApp", BoostLognormalDistribution)
A class used to generate Lognormal distribution via Boost.
BoostLognormalDistribution(const InputParameters &parameters)
std::unique_ptr< boost::math::lognormal_distribution< Real > > _distribution_unique_ptr
This must be defined by the child class in the constructor.