PARTONS/NumA++
|
Numerical Analysis C++ routines
|
Class defining an interval (with given bounds and step). More...
Public Types | |
enum | StepMode { NORMAL = 0 , LOG = 1 } |
Type of interval. More... | |
Public Member Functions | |
Interval (T lowerBound, T upperBound, T step=1, Interval::StepMode stepMode=NORMAL) | |
Constructor. More... | |
std::vector< T > | computeSteps () const |
T | getLowerBound () const |
void | setLowerBound (T lowerBound) |
T | getStep () const |
void | setStep (T step) |
T | getUpperBound () const |
void | setUpperBound (T upperBound) |
Static Public Member Functions | |
static std::vector< T > | computeNodes (T lowerBound, T upperBound, size_t num=10, Interval::StepMode stepMode=NORMAL) |
Static function that computes the nodes of an interval for a chosen number of nodes. More... | |
Private Attributes | |
T | m_lowerBound |
Lower bound of the interval. More... | |
T | m_upperBound |
Upper bound of the interval. More... | |
T | m_step |
Step. More... | |
Interval::StepMode | m_stepMode |
Type of interval. More... | |
Class defining an interval (with given bounds and step).
enum NumA::Interval::StepMode |
|
inline |
Constructor.
lowerBound | Lower bound of the interval. |
upperBound | Upper bound of the interval. |
step | Value of the step. |
stepMode | Type of interval. |
|
inlinestatic |
Static function that computes the nodes of an interval for a chosen number of nodes.
lowerBound | Lower bound of the interval. |
upperBound | Upper bound of the interval. |
num | Number of nodes. |
stepMode | Type of interval. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
lowerBound | Lower bound of the interval. |
|
inline |
step | Value of the step. |
|
inline |
upperBound | Upper bound of the interval. |
|
private |
Lower bound of the interval.
|
private |
Step.
|
private |
Type of interval.
|
private |
Upper bound of the interval.