Skip to content

Commit

Permalink
Revert one change
Browse files Browse the repository at this point in the history
  • Loading branch information
B Sharma authored and B Sharma committed Jun 6, 2020
1 parent aad8ced commit 712b9ac
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -301,8 +301,8 @@ public void addObservations(final double[][] x,final double[] y) throws ModelSpe
(y == null) ? 0 : y.length);
}
boolean obsOk=true;
for( int i = 0 ; i < x.length; i++){
if( x[i] == null || x[i].length == 0 ){
for (double[] x1 : x) {
if (x1 == null || x1.length == 0) {
obsOk = false;
}
}
Expand Down Expand Up @@ -827,7 +827,7 @@ public RegressionResults regress(int[] variablesToInclude) throws MathIllegalArg
if( variablesToInclude.length > 2 || (variablesToInclude.length > 1 && !hasIntercept) ){
throw new ModelSpecificationException(
LocalizedFormats.ARRAY_SIZE_EXCEEDS_MAX_VARIABLES,
!hasIntercept ? 1 : 2);
(variablesToInclude.length > 1 && !hasIntercept) ? 1 : 2);
}

if( hasIntercept ){
Expand Down

0 comments on commit 712b9ac

Please sign in to comment.