LCOV - code coverage report
Current view: top level - include/samplers - SobolSampler.h (source / functions) Hit Total Coverage
Test: stochastic_tools Test Coverage Lines: 1 1 100.0 %
Date: 2017-11-18 13:35:36 Functions: 2 2 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             : #ifndef SOBOLSAMPLER_H
       9             : #define SOBOLSAMPLER_H
      10             : 
      11             : #include "Sampler.h"
      12             : 
      13             : class SobolSampler;
      14             : 
      15             : template <>
      16             : InputParameters validParams<SobolSampler>();
      17             : /**
      18             :  * A class used to perform Monte Carlo Sampling
      19             :  */
      20          10 : class SobolSampler : public Sampler
      21             : {
      22             : public:
      23             :   SobolSampler(const InputParameters & parameters);
      24             : 
      25             : protected:
      26             :   virtual std::vector<DenseMatrix<Real>> sample() override;
      27             :   virtual void sampleSetUp() override;
      28             :   virtual void sampleTearDown() override;
      29             : 
      30             :   /// Number of Monte Carlo samples to create for each Sobol matrix
      31             :   const std::size_t _num_samples;
      32             : 
      33             :   ///@{
      34             :   /// Sobol Monte Carlo matrices, these are sized and cleared to avoid keeping large matrices around
      35             :   DenseMatrix<Real> _a_matrix;
      36             :   DenseMatrix<Real> _b_matrix;
      37             :   ///@}
      38             : };
      39             : 
      40             : #endif

Generated by: LCOV version 1.11