1
This commit is contained in:
Alex Yatskov 2014-09-26 16:08:13 +09:00
parent 3b7a377161
commit 855ad7a549

View File

@ -43,10 +43,9 @@ function combine(dict, params) {
result = add(values, result);
}
var max = 0.0;
for (var key in result) {
max = Math.max(Math.abs(result[key]), max);
}
var max = _.max(_.values(result), function(value) {
return Math.abs(value);
});
if (max > 0.0) {
for (var key in result) {