queso-0.57.1
|
Class for constant one-dimensional functions. More...
#include <1D1DFunction.h>
Public Member Functions | |
Constructor/Destructor methods | |
Constant1D1DFunction (double minDomainValue, double maxDomainValue, double constantValue) | |
Default constructor. More... | |
~Constant1D1DFunction () | |
Destructor. More... | |
Mathematical methods | |
double | value (double domainValue) const |
Returns the value of the constant function at point domainValue . More... | |
double | deriv (double domainValue) const |
Returns the value of the derivative of the constant function at point domainValue . More... | |
Public Member Functions inherited from QUESO::Base1D1DFunction | |
Base1D1DFunction (double minDomainValue, double maxDomainValue) | |
Default constructor. More... | |
virtual | ~Base1D1DFunction () |
Destructor. More... | |
double | minDomainValue () const |
Returns the minimum value of the domain of the (one-dimensional) function. More... | |
double | maxDomainValue () const |
Returns the maximum value of the domain of the (one-dimensional) function. More... | |
virtual double | multiplyAndIntegrate (const Base1D1DFunction &func, unsigned int quadratureOrder, double *resultWithMultiplicationByTAsWell) const |
TODO: Multiplies this function with function , and integrates it numerically. See template specialization. More... | |
Protected Attributes | |
double | m_constantValue |
Protected Attributes inherited from QUESO::Base1D1DFunction | |
double | m_minDomainValue |
double | m_maxDomainValue |
Class for constant one-dimensional functions.
This class implements constant one-dimensional functions.
Definition at line 140 of file 1D1DFunction.h.
QUESO::Constant1D1DFunction::Constant1D1DFunction | ( | double | minDomainValue, |
double | maxDomainValue, | ||
double | constantValue | ||
) |
Default constructor.
Definition at line 131 of file 1D1DFunction.C.
QUESO::Constant1D1DFunction::~Constant1D1DFunction | ( | ) |
|
virtual |
Returns the value of the derivative of the constant function at point domainValue
.
This function checks if point domainValue
belongs to the domain of this
function, and in affirmative case, it returns 0 (derivative of a constant function.
Implements QUESO::Base1D1DFunction.
Definition at line 163 of file 1D1DFunction.C.
References QUESO::Base1D1DFunction::m_maxDomainValue, and QUESO::Base1D1DFunction::m_minDomainValue.
|
virtual |
Returns the value of the constant function at point domainValue
.
This function checks if point domainValue
belongs to the domain of this
function, and in affirmative case, it evaluates the function at such point, which is the constant value constantValue
passed to the constructor of this class.
Implements QUESO::Base1D1DFunction.
Definition at line 146 of file 1D1DFunction.C.
References m_constantValue, QUESO::Base1D1DFunction::m_maxDomainValue, and QUESO::Base1D1DFunction::m_minDomainValue.
|
protected |
Definition at line 169 of file 1D1DFunction.h.
Referenced by value().