[sequencer] _.chunk splits by number, not chunk count

This commit is contained in:
Spencer Alger 2015-06-15 17:38:02 -07:00
parent c214eb486d
commit 2fa6c11454

View file

@ -16,7 +16,7 @@ define(function (require) {
}
function getSlopes(seq, count) {
return _.chunk(seq, count).map(function (chunk) {
return _.chunk(seq, Math.ceil(seq.length / count)).map(function (chunk) {
return (_.last(chunk) - _.first(chunk)) / chunk.length;
});
}
@ -98,4 +98,4 @@ define(function (require) {
});
});
});
});
});