|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jagg.LinearRegressionStats
public class LinearRegressionStats
This class represents all statistics generated by a
LinearRegressionAggregator
.
LinearRegressionAggregator
Constructor Summary | |
---|---|
LinearRegressionStats(double lineSlope,
double lineIntercept,
long count,
double rSquared,
double correlation,
double avg1,
double avg2)
Creates a LinearRegressionStats with the given attributes. |
Method Summary | |
---|---|
double |
getAvg1()
Returns the average of the first "x" property. |
double |
getAvg2()
Returns the average of the second "y" property. |
double |
getCorrelation()
Returns the coefficient of correlation between the first "x" property and the second "y" property. |
long |
getCount()
Returns the number of non-null samples considered. |
double |
getLineIntercept()
Returns the linear regression line's y-intercept. |
double |
getLineSlope()
Returns the linear regression line's slope. |
double |
getRSquared()
Returns the coefficient of determination, a.k.a. |
java.lang.String |
toString()
The String representation: (slope,intercept,count,rSquared,correlation,avg1,avg2) . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LinearRegressionStats(double lineSlope, double lineIntercept, long count, double rSquared, double correlation, double avg1, double avg2)
LinearRegressionStats
with the given attributes.
lineSlope
- The linear regression line's slope.lineIntercept
- The linear regression line's y-intercept.count
- The number of non-null samples considered.rSquared
- The coefficient of determination, a.k.a. R-squared, or goodness
of fit.correlation
- The coefficient of correlation between the first "x"
property and the second "y" property.avg1
- The average of the first "x" property.avg2
- The average of the second "y" property.Method Detail |
---|
public double getLineSlope()
public double getLineIntercept()
public long getCount()
public double getRSquared()
public double getCorrelation()
public double getAvg1()
public double getAvg2()
public java.lang.String toString()
String
representation: (slope,intercept,count,rSquared,correlation,avg1,avg2)
.
toString
in class java.lang.Object
String
representation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |