#include <hurst_base.h>
Inheritance diagram for hurst_base::
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 ) |
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.
|
Definition at line 66 of file hurst_base.h. 00066 {}; |
|
Definition at line 67 of file hurst_base.h. 00067 {}; |
|
Reimplemented in hurst_spectrum. |
|
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 } |
|
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 |
|
Definition at line 29 of file hurst_base.h. |