Java org.apache.commons.math.stat.regression SimpleRegression fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.math.stat.regression SimpleRegression fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.math.stat.regression SimpleRegression.

The text is from its open source code.

Subclass

org.apache.commons.math.stat.regression.SimpleRegression has subclasses.
Click this link to see all its subclasses.

Constructor

SimpleRegression()
Create an empty SimpleRegression instance

Method

voidaddData(double x, double y)
Adds the observation (x,y) to the regression data set.
voidaddData(double[][] data)
Adds the observations represented by the elements in data.
voidclear()
Clears all data from the model.
doublegetIntercept()
Returns the intercept of the estimated regression line.
doublegetMeanSquareError()
Returns the sum of squared errors divided by the degrees of freedom, usually abbreviated MSE.
longgetN()
Returns the number of observations that have been added to the model.
doublegetR()
Returns Pearson's product moment correlation coefficient, usually denoted r.
doublegetRSquare()
Returns the coefficient of determination, usually denoted r-square.
doublegetSlope()
Returns the slope of the estimated regression line.
doublegetSlopeConfidenceInterval()
Returns the half-width of a 95% confidence interval for the slope estimate.
doublegetSlopeStdErr()
Returns the standard error of the slope estimate, usually denoted s(b1).
doublepredict(double x)
Returns the "predicted" y value associated with the supplied x value, based on the data that has been added to the model when this method is activated.