LCOV - code coverage report
Current view: top level - src/distributions - NormalDistribution.C (source / functions) Hit Total Coverage
Test: stochastic_tools Test Coverage Lines: 10 10 100.0 %
Date: 2017-11-18 13:35:36 Functions: 5 5 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /****************************************************************/
       2             : /* MOOSE - Multiphysics Object Oriented Simulation Environment  */
       3             : /*                                                              */
       4             : /*          All contents are licensed under LGPL V2.1           */
       5             : /*             See LICENSE for full restrictions                */
       6             : /****************************************************************/
       7             : 
       8             : #include "NormalDistribution.h"
       9             : 
      10             : template <>
      11             : InputParameters
      12           1 : validParams<NormalDistribution>()
      13             : {
      14           1 :   InputParameters params = validParams<Distribution>();
      15           2 :   params.addClassDescription("Boost Normal distribution.");
      16           3 :   params.addRequiredParam<Real>("mean", "Mean of the distribution.");
      17           3 :   params.addRequiredParam<Real>("standard_deviation", "Standard deviation of the distribution.");
      18           1 :   return params;
      19             : }
      20             : 
      21           1 : NormalDistribution::NormalDistribution(const InputParameters & parameters)
      22           1 :   : BoostDistribution<boost::math::normal_distribution<Real>>(parameters)
      23             : {
      24           6 :   _distribution_unique_ptr = libmesh_make_unique<boost::math::normal_distribution<Real>>(
      25             :       getParam<Real>("mean"), getParam<Real>("standard_deviation"));
      26        3021 : }

Generated by: LCOV version 1.11