Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

RunningAvg< T > Class Template Reference

#include <run_avg.H>

Collaboration diagram for RunningAvg< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RunningAvg (const T &null)
 RunningAvg (const T &null, const T &v)
void add (const T &v)
const T & val () const
int num () const

Protected Attributes

_val
int _num

Detailed Description

template<class T>
class RunningAvg< T >

Definition at line 13 of file run_avg.H.


Constructor & Destructor Documentation

template<class T>
RunningAvg< T >::RunningAvg const T &  null  )  [inline]
 

Definition at line 15 of file run_avg.H.

template<class T>
RunningAvg< T >::RunningAvg const T &  null,
const T &  v
[inline]
 

Definition at line 16 of file run_avg.H.

References RunningAvg< T >::add().


Member Function Documentation

template<class T>
void RunningAvg< T >::add const T &  v  )  [inline]
 

Definition at line 19 of file run_avg.H.

References RunningAvg< T >::_num, and RunningAvg< T >::_val.

Referenced by Bedge::avg_area(), avg_bface_pix_area(), ELLIPSE::avg_dist(), avg_face_edge_len(), avg_strong_edge_len(), avg_strong_len(), and RunningAvg< T >::RunningAvg().

template<class T>
int RunningAvg< T >::num  )  const [inline]
 

Definition at line 32 of file run_avg.H.

References RunningAvg< T >::_num.

Referenced by Bedge::avg_area().

template<class T>
const T& RunningAvg< T >::val  )  const [inline]
 

Definition at line 29 of file run_avg.H.

References RunningAvg< T >::_val.

Referenced by Bedge::avg_area(), avg_bface_pix_area(), ELLIPSE::avg_dist(), avg_face_edge_len(), avg_strong_edge_len(), and avg_strong_len().


Member Data Documentation

template<class T>
int RunningAvg< T >::_num [protected]
 

Definition at line 36 of file run_avg.H.

Referenced by RunningAvg< T >::add(), and RunningAvg< T >::num().

template<class T>
T RunningAvg< T >::_val [protected]
 

Definition at line 35 of file run_avg.H.

Referenced by RunningAvg< T >::add(), and RunningAvg< T >::val().


The documentation for this class was generated from the following file:
Generated on Mon Sep 18 11:47:03 2006 for jot by  doxygen 1.4.4