LCOV - code coverage report
Current view: top level - include/distributions - UniformDistribution.h (source / functions) Hit Total Coverage
Test: stochastic_tools Test Coverage Lines: 1 1 100.0 %
Date: 2017-11-21 14:52:30 Functions: 1 2 50.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             : #ifndef UNIFORMDISTRIBUTION_H
       9             : #define UNIFORMDISTRIBUTION_H
      10             : 
      11             : #include "Distribution.h"
      12             : 
      13             : class UniformDistribution;
      14             : 
      15             : template <>
      16             : InputParameters validParams<UniformDistribution>();
      17             : /**
      18             :  * A class used to generate uniform distribution
      19             :  */
      20          23 : class UniformDistribution : public Distribution
      21             : {
      22             : public:
      23             :   UniformDistribution(const InputParameters & parameters);
      24             : 
      25             :   virtual Real pdf(const Real & x) override;
      26             :   virtual Real cdf(const Real & x) override;
      27             :   virtual Real quantile(const Real & y) override;
      28             : 
      29             : protected:
      30             :   /// The lower bound for the uniform distribution
      31             :   const Real & _lower_bound;
      32             : 
      33             :   /// The upper bound for the uniform distribution
      34             :   const Real & _upper_bound;
      35             : };
      36             : 
      37             : #endif /* UNIFORMDISTRIBUTION_H */

Generated by: LCOV version 1.11