org.jfree.data.statistics
public abstract class Regression extends Object
Method Summary | |
---|---|
static double[] | getOLSRegression(double[][] data)
Returns the parameters 'a' and 'b' for an equation y = a + bx, fitted to
the data using ordinary least squares regression. |
static double[] | getOLSRegression(XYDataset data, int series)
Returns the parameters 'a' and 'b' for an equation y = a + bx, fitted to
the data using ordinary least squares regression. |
static double[] | getPowerRegression(double[][] data)
Returns the parameters 'a' and 'b' for an equation y = ax^b, fitted to
the data using a power regression equation. |
static double[] | getPowerRegression(XYDataset data, int series)
Returns the parameters 'a' and 'b' for an equation y = ax^b, fitted to
the data using a power regression equation. |
Parameters: data the data.
Returns: The parameters.
Parameters: data the data. series the series (zero-based index).
Returns: The parameters.
Parameters: data the data.
Returns: The parameters.
Parameters: data the data. series the series to fit the regression line against.
Returns: The parameters.