public class LinearRegression extends Object
Constructor and Description |
---|
LinearRegression() |
Modifier and Type | Method and Description |
---|---|
static RegressionStatistics |
getRobustLinearRegression(ArrayList<Double> x,
ArrayList<Double> y)
Returns a robust linear regression based on the median.
|
static RegressionStatistics |
getSimpleLinearRegression(ArrayList<Double> x,
ArrayList<Double> y)
Returns a simple linear regression.
|
static RegressionStatistics |
getSimpleLinearRegressionOutlierRemoval(ArrayList<Double> x,
ArrayList<Double> y,
Double p)
Returns a simple linear regression performed after outlier removal.
|
public static RegressionStatistics getSimpleLinearRegression(ArrayList<Double> x, ArrayList<Double> y)
x
- the x seriesy
- the y seriespublic static RegressionStatistics getRobustLinearRegression(ArrayList<Double> x, ArrayList<Double> y)
x
- the x seriesy
- the y seriespublic static RegressionStatistics getSimpleLinearRegressionOutlierRemoval(ArrayList<Double> x, ArrayList<Double> y, Double p)
x
- the x seriesy
- the y seriesp
- the probability for outlier exclusion, e.g. 0.95 for 95%
confidenceCopyright © 2016. All rights reserved.