parent
2ba76c2573
commit
bfa5b60eff
|
@ -1830,6 +1830,7 @@ public class Dfp implements RealFieldElement<Dfp> {
|
||||||
for (int i = mant.length - 1; i >= 0; i--) {
|
for (int i = mant.length - 1; i >= 0; i--) {
|
||||||
if (divisor.mant[i] > remainder[i]) {
|
if (divisor.mant[i] > remainder[i]) {
|
||||||
trialgood = true;
|
trialgood = true;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
if (divisor.mant[i] < remainder[i]) {
|
if (divisor.mant[i] < remainder[i]) {
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -190,6 +190,7 @@ public abstract class BaseMultiStartMultivariateOptimizer<PAIR>
|
||||||
if ((min != null && s[k] < min[k]) || (max != null && s[k] > max[k])) {
|
if ((min != null && s[k] < min[k]) || (max != null && s[k] > max[k])) {
|
||||||
// reject the vector
|
// reject the vector
|
||||||
s = null;
|
s = null;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -300,10 +300,11 @@ public class SimpleRegression implements Serializable, UpdatingMultipleLinearReg
|
||||||
(x == null) ? 0 : x.length,
|
(x == null) ? 0 : x.length,
|
||||||
(y == null) ? 0 : y.length);
|
(y == null) ? 0 : y.length);
|
||||||
}
|
}
|
||||||
boolean obsOk=true;
|
boolean obsOk = true;
|
||||||
for( int i = 0 ; i < x.length; i++){
|
for( int i = 0 ; i < x.length; i++){
|
||||||
if( x[i] == null || x[i].length == 0 ){
|
if( x[i] == null || x[i].length == 0 ){
|
||||||
obsOk = false;
|
obsOk = false;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if( !obsOk ){
|
if( !obsOk ){
|
||||||
|
|
Loading…
Reference in New Issue