www.mooseframework.org
Public Member Functions | Protected Attributes | List of all members
TestDistributionPostprocessor Class Reference

Test object for testing distribution capabilities. More...

#include <TestDistributionPostprocessor.h>

Inheritance diagram for TestDistributionPostprocessor:
[legend]

Public Member Functions

 TestDistributionPostprocessor (const InputParameters &parameters)
 
virtual void initialize () override
 
virtual void execute () override
 
virtual PostprocessorValue getValue () override
 

Protected Attributes

Distribution & _distribution
 Object of statistics distribution. More...
 
const Real & _value
 The value to supply to method. More...
 
const MooseEnum & _distribution_method
 The distribution method to call. More...
 

Detailed Description

Test object for testing distribution capabilities.

WARNING! This object is only for testing and should not be used in general.

Definition at line 23 of file TestDistributionPostprocessor.h.

Constructor & Destructor Documentation

TestDistributionPostprocessor::TestDistributionPostprocessor ( const InputParameters &  parameters)

Definition at line 25 of file TestDistributionPostprocessor.C.

26  : GeneralPostprocessor(parameters),
27  _distribution(getDistribution("distribution")),
28  _value(getParam<Real>("value")),
29  _distribution_method(getParam<MooseEnum>("method"))
30 {
31 }
const Real & _value
The value to supply to method.
const MooseEnum & _distribution_method
The distribution method to call.
Distribution & _distribution
Object of statistics distribution.

Member Function Documentation

virtual void TestDistributionPostprocessor::execute ( )
inlineoverridevirtual

Definition at line 28 of file TestDistributionPostprocessor.h.

28 {}
PostprocessorValue TestDistributionPostprocessor::getValue ( )
overridevirtual

Definition at line 34 of file TestDistributionPostprocessor.C.

Referenced by execute().

35 {
36  if (_distribution_method == "pdf")
37  return _distribution.pdf(_value);
38  else if (_distribution_method == "cdf")
39  return _distribution.cdf(_value);
40  else if (_distribution_method == "quantile")
41  return _distribution.quantile(_value);
42  mooseError("This should be possible to reach, what did you do!");
43 }
const Real & _value
The value to supply to method.
const MooseEnum & _distribution_method
The distribution method to call.
Distribution & _distribution
Object of statistics distribution.
virtual void TestDistributionPostprocessor::initialize ( )
inlineoverridevirtual

Definition at line 27 of file TestDistributionPostprocessor.h.

27 {}

Member Data Documentation

Distribution& TestDistributionPostprocessor::_distribution
protected

Object of statistics distribution.

Definition at line 33 of file TestDistributionPostprocessor.h.

Referenced by getValue().

const MooseEnum& TestDistributionPostprocessor::_distribution_method
protected

The distribution method to call.

Definition at line 39 of file TestDistributionPostprocessor.h.

Referenced by getValue().

const Real& TestDistributionPostprocessor::_value
protected

The value to supply to method.

Definition at line 36 of file TestDistributionPostprocessor.h.

Referenced by getValue().


The documentation for this class was generated from the following files: