afl::MonteCarloIntegrator_1 Class Reference

#include <montecarlointegrator_1.h>

Inheritance diagram for afl::MonteCarloIntegrator_1:

afl::Integrator_1 afl::Integrator List of all members.

Public Member Functions

 MonteCarloIntegrator_1 (const Field *field, const Parameters &params)
virtual ~MonteCarloIntegrator_1 ()
virtual Value integral (const Simplex &s) const
virtual void toXML (std::ostream &doc) const
virtual Integratorclone ()
virtual const std::string & getMethod () const

Detailed Description

Class MonteCarloIntegrator_1 provides integrals for 1D fields by polling the field at random locations


Constructor & Destructor Documentation

afl::MonteCarloIntegrator_1::MonteCarloIntegrator_1 const Field field,
const Parameters params
 

constructor

Parameters:
field the field to approximate integrals in
params passed to this iterator. Should include >polls<number>/polls<. The default number is 5 polls
Exceptions:
ddf::InvalidArgumentException 

virtual afl::MonteCarloIntegrator_1::~MonteCarloIntegrator_1  )  [virtual]
 

Destructor


Member Function Documentation

virtual Integrator* afl::MonteCarloIntegrator_1::clone  )  [virtual]
 

Returns:
a true copy of the object. The object becomes the responsibility of the calling function

Reimplemented from afl::Integrator_1.

virtual const std::string& afl::MonteCarloIntegrator_1::getMethod  )  const [virtual]
 

Returns:
the name of the method this integrator implements

Reimplemented from afl::Integrator_1.

virtual Value afl::MonteCarloIntegrator_1::integral const Simplex s  )  const [virtual]
 

Parameters:
s the simplex to integrate over
Returns:
the integral over s

Reimplemented from afl::Integrator_1.

virtual void afl::MonteCarloIntegrator_1::toXML std::ostream &  doc  )  const [virtual]
 

represents the integrator for an FRL document

Parameters:
doc the output stream that the xml will be appended to

Reimplemented from afl::Integrator_1.


The documentation for this class was generated from the following file:
Generated on Fri Dec 22 07:17:51 2006 for afl by  doxygen 1.4.6