if (gNormLast < EPS * Math.max(1.0, ArrayMath.norm_1(xLast))) {
double norm = ArrayMath.norm_1(x) / sigmaSq; double d; if (norm > 30.0) {
if (gNormLast < EPS * Math.max(1.0, ArrayMath.norm_1(xLast))) {
if (gNormLast < EPS * Math.max(1.0, ArrayMath.norm_1(xLast))) {
if (gNormLast < EPS * Math.max(1.0, ArrayMath.norm_1(xLast))) {
if (gNormLast < EPS * Math.max(1.0, ArrayMath.norm_1(xLast))) {
double norm = ArrayMath.norm_1(x) / sigmaSq; double d; if (norm > 30.0) {
double norm = ArrayMath.norm_1(x) / sigmaSq; double d; if (norm > 30.0) {
double norm = ArrayMath.norm_1(x) / sigmaSq; double d; if (norm > 30.0) {
private Counter<String> arrayToCounter(String[] keys, double[] x) { Counter<String> c = new ClassicCounter<String>(); if (szMinusOne) { for (int i = 0; i < keys.length - 1; ++i) c.setCount(keys[i], x[i]); double l1norm = ArrayMath.norm_1(x); c.setCount(keys[keys.length - 1], 1.0 - l1norm); } else { for (int i = 0; i < keys.length; ++i) c.setCount(keys[i], x[i]); } return c; }