queso-0.53.0
|
Class for linear one-dimensional functions. More...
#include <1D1DFunction.h>
Public Member Functions | |
Constructor/Destructor methods | |
Linear1D1DFunction (double minDomainValue, double maxDomainValue, double referenceDomainValue, double referenceImageValue, double rateValue) | |
Default constructor. More... | |
~Linear1D1DFunction () | |
Destructor. More... | |
Mathematical methods | |
double | value (double domainValue) const |
Returns the value of the linear function at point domainValue . More... | |
double | deriv (double domainValue) const |
Returns the value of the derivative of the linear 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_referenceDomainValue |
Reference value in the function domain; in . More... | |
double | m_referenceImageValue |
Reference value in the function image; in . More... | |
double | m_rateValue |
Rate value; in . More... | |
Protected Attributes inherited from QUESO::Base1D1DFunction | |
double | m_minDomainValue |
double | m_maxDomainValue |
Class for linear one-dimensional functions.
This class implements linear one-dimensional functions. A common linear function is the the equation of a line:
which is a linear function with slope (or rate) and passing through the point .
This class implements a linear function such as the one describe above where the rate is given by rateValue
, and the point is (referenceDomainValue,referenceImageValue)
.
Definition at line 186 of file 1D1DFunction.h.
QUESO::Linear1D1DFunction::Linear1D1DFunction | ( | double | minDomainValue, |
double | maxDomainValue, | ||
double | referenceDomainValue, | ||
double | referenceImageValue, | ||
double | rateValue | ||
) |
Default constructor.
Constructs a linear function of constant rate of change rateValue
which passes through the point (x,y)=(referenceDomainValue,referenceImageValue)
.
Definition at line 182 of file 1D1DFunction.C.
QUESO::Linear1D1DFunction::~Linear1D1DFunction | ( | ) |
|
virtual |
Returns the value of the derivative of the linear function at point domainValue
.
This function checks if point domainValue
belongs to the domain of this
function, and in affirmative case, it returns the value of the derivative at such point (namely m_rateValue
).
Implements QUESO::Base1D1DFunction.
Definition at line 220 of file 1D1DFunction.C.
References QUESO::Base1D1DFunction::m_maxDomainValue, QUESO::Base1D1DFunction::m_minDomainValue, m_rateValue, and queso_require_msg.
|
virtual |
Returns the value of the linear 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.
Implements QUESO::Base1D1DFunction.
Definition at line 201 of file 1D1DFunction.C.
References QUESO::Base1D1DFunction::m_maxDomainValue, QUESO::Base1D1DFunction::m_minDomainValue, m_rateValue, m_referenceDomainValue, m_referenceImageValue, and queso_require_msg.
|
protected |
|
protected |
Reference value in the function domain; in .
Definition at line 220 of file 1D1DFunction.h.
Referenced by value().
|
protected |
Reference value in the function image; in .
Definition at line 223 of file 1D1DFunction.h.
Referenced by value().