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

Test object for testing distribution capabilities. More...

#include <TestDistributionDirectPostprocessor.h>

Inheritance diagram for TestDistributionDirectPostprocessor:
[legend]

Public Member Functions

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

Protected Attributes

const NormalDistribution_distribution
 Object of statistics distribution. More...
 
const Real & _value
 The value to supply to method. More...
 
const Real & _mean
 Value of mean to test direct method. More...
 
const Real & _std_dev
 Value of standard deviation to test direct 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 26 of file TestDistributionDirectPostprocessor.h.

Constructor & Destructor Documentation

◆ TestDistributionDirectPostprocessor()

TestDistributionDirectPostprocessor::TestDistributionDirectPostprocessor ( const InputParameters &  parameters)

Definition at line 31 of file TestDistributionDirectPostprocessor.C.

33  : GeneralPostprocessor(parameters),
34  _distribution(getDistribution<NormalDistribution>("distribution")),
35  _value(getParam<Real>("value")),
36  _mean(getParam<Real>("mean")),
37  _std_dev(getParam<Real>("standard_deviation")),
38  _distribution_method(getParam<MooseEnum>("method"))
39 {
40 }
const Real & _std_dev
Value of standard deviation to test direct method.
const NormalDistribution & _distribution
Object of statistics distribution.
const Real & _mean
Value of mean to test direct method.
const MooseEnum & _distribution_method
The distribution method to call.
const Real & _value
The value to supply to method.

Member Function Documentation

◆ execute()

virtual void TestDistributionDirectPostprocessor::execute ( )
inlineoverridevirtual

Definition at line 31 of file TestDistributionDirectPostprocessor.h.

31 {}

◆ getValue()

PostprocessorValue TestDistributionDirectPostprocessor::getValue ( )
overridevirtual

Definition at line 43 of file TestDistributionDirectPostprocessor.C.

44 {
45  if (_distribution_method == "pdf")
47  else if (_distribution_method == "cdf")
49  else if (_distribution_method == "quantile")
51  mooseError("This should be possible to reach, what did you do!");
52 }
const Real & _std_dev
Value of standard deviation to test direct method.
virtual Real quantile(const Real &p) const override
const NormalDistribution & _distribution
Object of statistics distribution.
const Real & _mean
Value of mean to test direct method.
virtual Real cdf(const Real &x) const override
const MooseEnum & _distribution_method
The distribution method to call.
const Real & _value
The value to supply to method.
virtual Real pdf(const Real &x) const override

◆ initialize()

virtual void TestDistributionDirectPostprocessor::initialize ( )
inlineoverridevirtual

Definition at line 30 of file TestDistributionDirectPostprocessor.h.

30 {}

Member Data Documentation

◆ _distribution

const NormalDistribution& TestDistributionDirectPostprocessor::_distribution
protected

Object of statistics distribution.

Definition at line 36 of file TestDistributionDirectPostprocessor.h.

Referenced by getValue().

◆ _distribution_method

const MooseEnum& TestDistributionDirectPostprocessor::_distribution_method
protected

The distribution method to call.

Definition at line 48 of file TestDistributionDirectPostprocessor.h.

Referenced by getValue().

◆ _mean

const Real& TestDistributionDirectPostprocessor::_mean
protected

Value of mean to test direct method.

Definition at line 42 of file TestDistributionDirectPostprocessor.h.

Referenced by getValue().

◆ _std_dev

const Real& TestDistributionDirectPostprocessor::_std_dev
protected

Value of standard deviation to test direct method.

Definition at line 45 of file TestDistributionDirectPostprocessor.h.

Referenced by getValue().

◆ _value

const Real& TestDistributionDirectPostprocessor::_value
protected

The value to supply to method.

Definition at line 39 of file TestDistributionDirectPostprocessor.h.

Referenced by getValue().


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