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

lregress::lineInfo Class Reference

Line information. More...

#include <lregress.h>

List of all members.

Public Methods

 lineInfo ()
 constructor. More...

 ~lineInfo ()
 lineInfo (const lineInfo &rhs)
 copy constructor. More...

double slope ()
void slope (double s)
double intercept ()
void intercept (double a)
double stddev ()
void stddev (double s)
double corr ()
void corr (double c)
double slopeErr ()
void slopeErr (double e)

Private Attributes

double slope_
 the slope of the line (e.g., b in y' = a + bx). More...

double intercept_
 the y-intercept (e.g., a, when x == 0 in y' = a + bx). More...

double stddev_
 standard deviation of the points around the line. More...

double slopeError_
 Regression error. More...

double cor_
 correlation between the x points and the y points. More...


Detailed Description

Line information.

A container for linear regression information.

A regression line, defined by the equation y' = a + bx, where a and b are constants. The constant a is the y intercept when x == 0. The constant b is the slope of the line.

Definition at line 80 of file lregress.h.


Constructor & Destructor Documentation

lregress::lineInfo::lineInfo ( ) [inline]
 

constructor.

Definition at line 95 of file lregress.h.

00096     {
00097       slope_ = 0;
00098       intercept_ = 0;
00099       cor_ = 0;
00100       stddev_;
00101       slopeError_ = 0;
00102     }

lregress::lineInfo::~lineInfo ( ) [inline]
 

Definition at line 103 of file lregress.h.

00103 {}

lregress::lineInfo::lineInfo ( const lineInfo & rhs ) [inline]
 

copy constructor.

Definition at line 105 of file lregress.h.

00106     {
00107       slope_ = rhs.slope_;
00108       intercept_ = rhs.intercept_;
00109       cor_ = rhs.cor_;
00110       stddev_ = rhs.stddev_;
00111       slopeError_ = rhs.slopeError_;
00112     }


Member Function Documentation

void lregress::lineInfo::corr ( double c ) [inline]
 

Definition at line 124 of file lregress.h.

00124 { cor_ = c; }

double lregress::lineInfo::corr ( ) [inline]
 

Definition at line 123 of file lregress.h.

Referenced by lregress::lr().

00123 { return cor_; }

void lregress::lineInfo::intercept ( double a ) [inline]
 

Definition at line 118 of file lregress.h.

00118 { intercept_ = a; }

double lregress::lineInfo::intercept ( ) [inline]
 

Definition at line 117 of file lregress.h.

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

00117 { return intercept_; }

void lregress::lineInfo::slope ( double s ) [inline]
 

Definition at line 115 of file lregress.h.

00115 { slope_ = s; }

double lregress::lineInfo::slope ( ) [inline]
 

Definition at line 114 of file lregress.h.

Referenced by autocorr::acorrSlope(), rescaled_range::calc_hurst_est(), hurst_spectrum::calc_hurst_est(), and lregress::lr().

00114 { return slope_; }

void lregress::lineInfo::slopeErr ( double e ) [inline]
 

Definition at line 127 of file lregress.h.

00127 { slopeError_ = e; }

double lregress::lineInfo::slopeErr ( ) [inline]
 

Definition at line 126 of file lregress.h.

Referenced by autocorr::acorrSlope(), rescaled_range::calc_hurst_est(), hurst_spectrum::calc_hurst_est(), and lregress::lr().

00126 { return slopeError_; }

void lregress::lineInfo::stddev ( double s ) [inline]
 

Definition at line 121 of file lregress.h.

00121 { stddev_ = s; }

double lregress::lineInfo::stddev ( ) [inline]
 

Definition at line 120 of file lregress.h.

Referenced by lregress::lr().

00120 { return stddev_; }


Member Data Documentation

double lregress::lineInfo::cor_ [private]
 

correlation between the x points and the y points.

Definition at line 92 of file lregress.h.

double lregress::lineInfo::intercept_ [private]
 

the y-intercept (e.g., a, when x == 0 in y' = a + bx).

Definition at line 86 of file lregress.h.

double lregress::lineInfo::slopeError_ [private]
 

Regression error.

Definition at line 90 of file lregress.h.

double lregress::lineInfo::slope_ [private]
 

the slope of the line (e.g., b in y' = a + bx).

Definition at line 84 of file lregress.h.

double lregress::lineInfo::stddev_ [private]
 

standard deviation of the points around the line.

Definition at line 88 of file lregress.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