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

hurst_base Class Reference

Abstract base class for Hurst exponent calculation. More...

#include <hurst_base.h>

Inheritance diagram for hurst_base::

hurst_spectrum rescaled_range List of all members.

Public Methods

 hurst_base ()
 ~hurst_base ()
virtual void calc_hurst_est (const double *v, const size_t N, hurstInfo &info)=0

Protected Methods

double log2 (const double val) const
void print_regression_points (std::vector< lregress::point > data)

Static Protected Attributes

double log10of2 = log10( 2.0 )

Detailed Description

Abstract base class for Hurst exponent calculation.

This base class defines the local hurstInfo class which is a container for the linear regression data calculated either through the R/S or wavelet spectrum points. The base class also provides some utility functions: log2 (log, base 2) and print_regression_points, which was used for debugging and printing data for plot creation (e.g., the plots on the associated web pages).

The base class also defines the calc_hurst_est interface (e.g., virtual function).

Definition at line 27 of file hurst_base.h.


Constructor & Destructor Documentation

hurst_base::hurst_base ( ) [inline]
 

Definition at line 66 of file hurst_base.h.

00066 {};

hurst_base::~hurst_base ( ) [inline]
 

Definition at line 67 of file hurst_base.h.

00067 {};


Member Function Documentation

void hurst_base::calc_hurst_est ( const double * v,
const size_t N,
hurstInfo & info ) [pure virtual]
 

Reimplemented in hurst_spectrum.

double hurst_base::log2 ( const double val ) const [inline, protected]
 

Definition at line 30 of file hurst_base.h.

Referenced by rescaled_range::calc_hurst_est(), and hurst_spectrum::calc_hurst_est().

00031   {
00032     return log10( val )/ log10of2;
00033   }

void hurst_base::print_regression_points ( std::vector< lregress::point > data ) [protected]
 

Definition at line 8 of file hurst_base.cpp.

00009 {
00010   const size_t numPts = data.size();
00011 
00012   size_t i;
00013   for (i = 0; i < numPts; i++) {
00014     printf("%7.4f  %7.4f\n", data[i].x(), data[i].y() );
00015   }
00016 } // print_regression_points


Member Data Documentation

double hurst_base::log10of2 = log10( 2.0 ) [static, protected]
 

Definition at line 29 of file hurst_base.h.


The documentation for this class was generated from the following files:
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