CFL
Public Member Functions | List of all members

Standard concrete class for indicator functions. More...

#include <cfl/Ind.hpp>

Public Member Functions

 Ind (IInd *pNewInd=0)
 
void indicator (std::valarray< double > &rValues, double dBarrier) const
 

Detailed Description

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

Constructor & Destructor Documentation

cfl::Ind::Ind ( IInd pNewInd = 0)
explicit

Constructs indicator function on a grid.

Parameters
pNewIndA dynamically allocated implementation of the interface class IInd.

Member Function Documentation

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
rValuesBefore 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".
dBarrierThe level of the barrier.

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