#include <lregress.h>
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... | |
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. 
 Definition at line 95 of file lregress.h. 00096     {
00097       slope_ = 0;
00098       intercept_ = 0;
00099       cor_ = 0;
00100       stddev_;
00101       slopeError_ = 0;
00102     }
 | 
  
      
  | 
  
| 
 
 Definition at line 103 of file lregress.h. 00103 {}
 | 
  
      
  | 
  
| 
 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     }
 | 
  
      
  | 
  
| 
 
 Definition at line 124 of file lregress.h. 00124 { cor_ = c; }
 | 
  
      
  | 
  
| 
 
 Definition at line 123 of file lregress.h. Referenced by lregress::lr(). 
 00123 { return cor_; }
 | 
  
      
  | 
  
| 
 
 Definition at line 118 of file lregress.h. 00118 { intercept_ = a; }
 | 
  
      
  | 
  
| 
 
 Definition at line 117 of file lregress.h. Referenced by lregress::lr(). 
 00117 { return intercept_; }
 | 
  
      
  | 
  
| 
 
 Definition at line 115 of file lregress.h. 00115 { slope_ = s; }
 | 
  
      
  | 
  
| 
 
 Definition at line 114 of file lregress.h. Referenced by autocorr::acorrSlope(), and lregress::lr(). 
 00114 { return slope_; }
 | 
  
      
  | 
  
| 
 
 Definition at line 127 of file lregress.h. 00127 { slopeError_ = e; }
 | 
  
      
  | 
  
| 
 
 Definition at line 126 of file lregress.h. Referenced by autocorr::acorrSlope(), and lregress::lr(). 
 00126 { return slopeError_; }
 | 
  
      
  | 
  
| 
 
 Definition at line 121 of file lregress.h. 00121 { stddev_ = s; }
 | 
  
      
  | 
  
| 
 
 Definition at line 120 of file lregress.h. Referenced by lregress::lr(). 
 00120 { return stddev_; }
 | 
  
      
  | 
  
| 
 correlation between the x points and the y points. 
 Definition at line 92 of file lregress.h.  | 
  
      
  | 
  
| 
 the y-intercept (e.g., a, when x == 0 in y' = a + bx). 
 Definition at line 86 of file lregress.h.  | 
  
      
  | 
  
| 
 Regression error. 
 Definition at line 90 of file lregress.h.  | 
  
      
  | 
  
| 
 the slope of the line (e.g., b in y' = a + bx). 
 Definition at line 84 of file lregress.h.  | 
  
      
  | 
  
| 
 standard deviation of the points around the line. 
 Definition at line 88 of file lregress.h.  | 
  
1.2.8.1 written by Dimitri van Heesch,
 © 1997-2001