mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[sequencer] _.chunk splits by number, not chunk count
This commit is contained in:
parent
c214eb486d
commit
2fa6c11454
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
|||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue