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); result = add(values, result);
} }
var max = 0.0; var max = _.max(_.values(result), function(value) {
for (var key in result) { return Math.abs(value);
max = Math.max(Math.abs(result[key]), max); });
}
if (max > 0.0) { if (max > 0.0) {
for (var key in result) { for (var key in result) {