CMS 3D CMS Logo

funct::TrapezoidIntegrator Class Reference

#include <PhysicsTools/Utilities/interface/NumericalIntegration.h>

List of all members.

Public Member Functions

template<typename F>
double operator() (const F &f, double min, double max) const
 TrapezoidIntegrator (unsigned int samples)
 TrapezoidIntegrator ()

Private Attributes

unsigned int samples_


Detailed Description

Definition at line 29 of file NumericalIntegration.h.


Constructor & Destructor Documentation

funct::TrapezoidIntegrator::TrapezoidIntegrator (  )  [inline]

Definition at line 31 of file NumericalIntegration.h.

00031 : samples_(0) { }

funct::TrapezoidIntegrator::TrapezoidIntegrator ( unsigned int  samples  )  [inline, explicit]

Definition at line 32 of file NumericalIntegration.h.

00032 : samples_(samples) { }


Member Function Documentation

template<typename F>
double funct::TrapezoidIntegrator::operator() ( const F &  f,
double  min,
double  max 
) const [inline]

Definition at line 34 of file NumericalIntegration.h.

References samples_, and funct::trapezoid_integral().

00034                                                                 { 
00035       return trapezoid_integral(f, min, max, samples_);
00036     }


Member Data Documentation

unsigned int funct::TrapezoidIntegrator::samples_ [private]

Definition at line 38 of file NumericalIntegration.h.

Referenced by operator()().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:47:03 2009 for CMSSW by  doxygen 1.5.4