java.lang.Object | |
↳ | org.jfree.data.statistics.Regression |
A utility class for fitting regression curves to data.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the parameters 'a' and 'b' for an equation y = a + bx, fitted to
the data using ordinary least squares regression.
| |||||||||||
Returns the parameters 'a' and 'b' for an equation y = a + bx, fitted to
the data using ordinary least squares regression.
| |||||||||||
Returns the parameters 'a' and 'b' for an equation y = ax^b, fitted to
the data using a power regression equation.
| |||||||||||
Returns the parameters 'a' and 'b' for an equation y = ax^b, fitted to
the data using a power regression equation.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Returns the parameters 'a' and 'b' for an equation y = a + bx, fitted to the data using ordinary least squares regression. The result is returned as a double[], where result[0] --> a, and result[1] --> b.
data | the data. |
---|
Returns the parameters 'a' and 'b' for an equation y = a + bx, fitted to the data using ordinary least squares regression. The result is returned as a double[], where result[0] --> a, and result[1] --> b.
data | the data. |
---|---|
series | the series (zero-based index). |
Returns the parameters 'a' and 'b' for an equation y = ax^b, fitted to the data using a power regression equation. The result is returned as an array, where double[0] --> a, and double[1] --> b.
data | the data. |
---|
Returns the parameters 'a' and 'b' for an equation y = ax^b, fitted to the data using a power regression equation. The result is returned as an array, where double[0] --> a, and double[1] --> b.
data | the data. |
---|---|
series | the series to fit the regression line against. |