cloudy  trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Attributes | Private Attributes
integrate::Midpoint< T > Class Template Reference

#include <integrate.h>

Collaboration diagram for integrate::Midpoint< T >:
Collaboration graph
[legend]

Public Member Functions

 Midpoint (const T &f, double a, double b)
 
void step ()
 
double sum () const
 
long evals () const
 

Static Public Attributes

static const int NREF =3
 

Private Attributes

m_f
 
double m_a
 
double m_b
 
double m_sum
 
long m_n
 

Detailed Description

template<class T>
class integrate::Midpoint< T >

Definition at line 139 of file integrate.h.

Constructor & Destructor Documentation

template<class T >
integrate::Midpoint< T >::Midpoint ( const T &  f,
double  a,
double  b 
)
inline

Definition at line 146 of file integrate.h.

Member Function Documentation

template<class T >
long integrate::Midpoint< T >::evals ( ) const
inline

Definition at line 174 of file integrate.h.

References integrate::Midpoint< T >::m_n.

template<class T >
void integrate::Midpoint< T >::step ( )
inline
template<class T >
double integrate::Midpoint< T >::sum ( ) const
inline

Definition at line 170 of file integrate.h.

References integrate::Midpoint< T >::m_sum.

Field Documentation

template<class T >
double integrate::Midpoint< T >::m_a
private

Definition at line 142 of file integrate.h.

Referenced by integrate::Midpoint< T >::step().

template<class T >
double integrate::Midpoint< T >::m_b
private

Definition at line 142 of file integrate.h.

Referenced by integrate::Midpoint< T >::step().

template<class T >
T integrate::Midpoint< T >::m_f
private

Definition at line 141 of file integrate.h.

Referenced by integrate::Midpoint< T >::step().

template<class T >
long integrate::Midpoint< T >::m_n
private

Definition at line 143 of file integrate.h.

Referenced by integrate::Midpoint< T >::evals(), and integrate::Midpoint< T >::step().

template<class T >
double integrate::Midpoint< T >::m_sum
private

Definition at line 142 of file integrate.h.

Referenced by integrate::Midpoint< T >::step(), and integrate::Midpoint< T >::sum().

template<class T >
const int integrate::Midpoint< T >::NREF =3
static

Definition at line 145 of file integrate.h.

Referenced by integrate::Midpoint< T >::step().


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