You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by lu...@apache.org on 2011/02/22 20:35:02 UTC
svn commit: r1073464 -
/commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/stat/regression/OLSMultipleLinearRegression.java
Author: luc
Date: Tue Feb 22 19:35:02 2011
New Revision: 1073464
URL: http://svn.apache.org/viewvc?rev=1073464&view=rev
Log:
added missing @since tags
JIRA: MATH-531
Modified:
commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/stat/regression/OLSMultipleLinearRegression.java
Modified: commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/stat/regression/OLSMultipleLinearRegression.java
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/stat/regression/OLSMultipleLinearRegression.java?rev=1073464&r1=1073463&r2=1073464&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/stat/regression/OLSMultipleLinearRegression.java (original)
+++ commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/stat/regression/OLSMultipleLinearRegression.java Tue Feb 22 19:35:02 2011
@@ -129,6 +129,7 @@ public class OLSMultipleLinearRegression
*
* @return SSTO - the total sum of squares
* @see #isNoIntercept()
+ * @since 2.2
*/
public double calculateTotalSumOfSquares() {
if (isNoIntercept()) {
@@ -142,6 +143,7 @@ public class OLSMultipleLinearRegression
* Returns the sum of squared residuals.
*
* @return residual sum of squares
+ * @since 2.2
*/
public double calculateResidualSumOfSquares() {
final RealVector residuals = calculateResiduals();
@@ -156,6 +158,7 @@ public class OLSMultipleLinearRegression
* and SSTO is the {@link #calculateTotalSumOfSquares() total sum of squares}
*
* @return R-square statistic
+ * @since 2.2
*/
public double calculateRSquared() {
return 1 - calculateResidualSumOfSquares() / calculateTotalSumOfSquares();
@@ -175,6 +178,7 @@ public class OLSMultipleLinearRegression
*
* @return adjusted R-Squared statistic
* @see #isNoIntercept()
+ * @since 2.2
*/
public double calculateAdjustedRSquared() {
final double n = X.getRowDimension();