afl::MonteCarloIntegrator_2 Class Reference

#include <montecarlointegrator_2.h>

Inheritance diagram for afl::MonteCarloIntegrator_2:

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

Public Member Functions

 MonteCarloIntegrator_2 (const Field *field, const Parameters &params)
virtual ~MonteCarloIntegrator_2 ()
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_2 provides integrals for 2D fields by polling the field at random locations


Constructor & Destructor Documentation

afl::MonteCarloIntegrator_2::MonteCarloIntegrator_2 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_2::~MonteCarloIntegrator_2  )  [virtual]
 

Destructor


Member Function Documentation

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

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

Reimplemented from afl::Integrator_2.

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

Returns:
the name of the method this integrator implements

Reimplemented from afl::Integrator_2.

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

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

Reimplemented from afl::Integrator_2.

virtual void afl::MonteCarloIntegrator_2::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_2.


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