Removed unnecessary return statements, reported by pmd.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364369 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d66e446778
commit
8b7f2a69cf
|
@ -154,7 +154,6 @@ public class SimpleRegression implements Serializable, UpdatingMultipleLinearReg
|
|||
sumX += x;
|
||||
sumY += y;
|
||||
n++;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
@ -195,7 +194,6 @@ public class SimpleRegression implements Serializable, UpdatingMultipleLinearReg
|
|||
sumY -= y;
|
||||
n--;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -224,7 +222,6 @@ public class SimpleRegression implements Serializable, UpdatingMultipleLinearReg
|
|||
}
|
||||
addData(data[i][0], data[i][1]);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -240,7 +237,6 @@ public class SimpleRegression implements Serializable, UpdatingMultipleLinearReg
|
|||
throw new ModelSpecificationException(LocalizedFormats.INVALID_REGRESSION_OBSERVATION,x!=null?x.length:0, 1);
|
||||
}
|
||||
addData( x[0], y );
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -274,7 +270,6 @@ public class SimpleRegression implements Serializable, UpdatingMultipleLinearReg
|
|||
for( int i = 0 ; i < x.length ; i++){
|
||||
addData( x[i][0], y[i] );
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue