This class provides an efficient online algorithm for calculating linear square line fit. The class also calculates the mean for the X's and Y's, and variance for the X's. These are byproducts of calculating the line fit. The online algorithm is detailed in the implementation notes.
Synopsis
Declared in <bdlsta_linefit.h>
class LineFit;
Enums
Name |
Description |
Status codes returned by statistical computations. |
Member Functions
Name |
Description |
|
Create an empty |
Add the specified |
|
Returns the number of elements in the data set. |
|
Calculate line fit coefficients |
|
Calculate line fit coefficients |
|
Return the variance of the data set X's. The behavior is undefined unless |
|
Load into the specified |
|
Return the mean of the data set X's. The behavior is undefined unless |
|
Load into the specified |
|
Return the mean of the data set Y's. The behavior is undefined unless |
|
Load into the specified |
Created with MrDocs