Cloudy
Spectral Synthesis Code for Astrophysics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
integrate::Midpoint< T > Class Template Reference

#include <integrate.h>

Collaboration diagram for integrate::Midpoint< T >:

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
 

Constructor & Destructor Documentation

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

Member Function Documentation

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

Member Data Documentation

template<class T >
double integrate::Midpoint< T >::m_a
private
template<class T >
double integrate::Midpoint< T >::m_b
private
template<class T >
T integrate::Midpoint< T >::m_f
private
template<class T >
long integrate::Midpoint< T >::m_n
private
template<class T >
double integrate::Midpoint< T >::m_sum
private
template<class T >
const int integrate::Midpoint< T >::NREF =3
static

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