Standard concrete class for indicator functions.
More...
#include <cfl/Ind.hpp>
This is the standard class for indicator functions. It is implemented by a dynamically allocated object derived from the interface class IInd. This class should be used to represent discontinuous functions on a grid to accelerate the numerical integration of these functions.
- See also
- IInd and NInd
cfl::Ind::Ind |
( |
IInd * |
pNewInd = 0 | ) |
|
|
explicit |
Constructs indicator function on a grid.
- Parameters
-
pNewInd | A dynamically allocated implementation of the interface class IInd. |
void cfl::Ind::indicator |
( |
std::valarray< double > & |
rValues, |
|
|
double |
dBarrier |
|
) |
| const |
Constructs the indicator function of the event: "the function is greater then
the barrier". It is going to be used to represent discontinuous functions and is intended to accelerate numerical integration of these functions.
- Parameters
-
rValues | Before the operation this array represents the values of the function on a grid. After the operation it contains the values of the event "the function is greater than the barrier". |
dBarrier | The level of the barrier. |
The documentation for this class was generated from the following file: