Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

histogram::value_pool Class Reference

Get values from a double array. More...

List of all members.

Public Methods

 value_pool (const double *vec, size_t N)
bool get_val (double &val)

Private Attributes

size_t ix_
const double* vec_
const size_t N_


Detailed Description

Get values from a double array.

Definition at line 59 of file histogram.h.


Constructor & Destructor Documentation

histogram::value_pool::value_pool ( const double * vec,
size_t N ) [inline]
 

Definition at line 67 of file histogram.h.

00067                                               : vec_( vec ), N_( N )
00068     {
00069       ix_ = 0;
00070     }


Member Function Documentation

bool histogram::value_pool::get_val ( double & val ) [inline]
 

Definition at line 72 of file histogram.h.

00073     {
00074       bool rslt = false;
00075       val = 0.0;
00076       if (ix_ < N_) {
00077         rslt = true;
00078         val = vec_[ ix_ ];
00079         ix_++;
00080       }
00081       return rslt;
00082     } // get_val


Member Data Documentation

const size_t histogram::value_pool::N_ [private]
 

Definition at line 64 of file histogram.h.

size_t histogram::value_pool::ix_ [private]
 

Definition at line 62 of file histogram.h.

const double * histogram::value_pool::vec_ [private]
 

Definition at line 63 of file histogram.h.


The documentation for this class was generated from the following file:
Generated at Thu May 22 21:12:35 2003 for Hurst Exponent Calculation and Supporting Statistics by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001