# Timelion Holt-Winters

**URL:** <https://discuss.elastic.co/t/timelion-holt-winters/45760>\
**Category:** Kibana\
**Created:** [March 30, 2016, 7:27am UTC](https://discuss.elastic.co/t/timelion-holt-winters/45760 "2016-03-30T07:27:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carlos\_Vega\_Moreno](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carlos_vega_moreno/32/3773_2.png) [@Carlos\_Vega\_Moreno](https://discuss.elastic.co/u/Carlos_Vega_Moreno)\
**Post date:** [March 30, 2016, 7:27am UTC](https://discuss.elastic.co/t/timelion-holt-winters/45760/1 "2016-03-30T07:27:26Z")

</div>

It raises the error: **Invalid array length** when trying to do a forecast with HW like […]**.testcast(3, 0.9)**

[Documentation says](https://github.com/elastic/timelion/blob/master/FUNCTIONS.md#testcast):

> Use holt-winters to forecast values. Basically useless. **I have no idea how this works.**

Couldn't be this documentation more detailed? 😕 I can manage to get it working. Thanks in advance.

The complete error looks:

> Error: in cell #1: Invalid array length  
> at throwWithCell (/Users/carlosvega/elastic/kibana/installedPlugins/timelion/handlers/chain\_runner.js:28:11)  
> at /Users/carlosvega/elastic/kibana/installedPlugins/timelion/handlers/chain\_runner.js:181:11  
> at bound (domain.js:287:14)  
> at runBound (domain.js:300:12)  
> at tryCatcher (/Users/carlosvega/elastic/kibana/node\_modules/bluebird/js/main/util.js:26:23)  
> at Promise.\_settlePromiseFromHandler (/Users/carlosvega/elastic/kibana/node\_modules/bluebird/js/main/promise.js:503:31)  
> at Promise.\_settlePromiseAt (/Users/carlosvega/elastic/kibana/node\_modules/bluebird/js/main/promise.js:577:18)  
> at Promise.\_settlePromises (/Users/carlosvega/elastic/kibana/node\_modules/bluebird/js/main/promise.js:693:14)  
> at Async.\_drainQueue (/Users/carlosvega/elastic/kibana/node\_modules/bluebird/js/main/async.js:123:16)  
> at Async.\_drainQueues (/Users/carlosvega/elastic/kibana/node\_modules/bluebird/js/main/async.js:133:10)  
> at Immediate.Async.drainQueues [as \_onImmediate] (/Users/carlosvega/elastic/kibana/node\_modules/bluebird/js/main/async.js:15:14)  
> at processImmediate [as \_immediateCallback] (timers.js:383:17)

---

<div class="post-metadata">

**Author:** ![spalger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spalger/32/14092_2.png) [@spalger](https://discuss.elastic.co/u/spalger)\
**Post date:** [March 30, 2016, 4:40pm UTC](https://discuss.elastic.co/t/timelion-holt-winters/45760/2 "2016-03-30T16:40:45Z")

</div>

I suggest filing an issue in the [timelion issue tracker](https://github.com/elastic/timelion), but I kind of doubt that this function which is labeled "basically useless" will get much support.

---

<div class="post-metadata">

**Author:** ![Carlos\_Vega\_Moreno](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carlos_vega_moreno/32/3773_2.png) [@Carlos\_Vega\_Moreno](https://discuss.elastic.co/u/Carlos_Vega_Moreno)\
**Post date:** [April 8, 2016, 7:14am UTC](https://discuss.elastic.co/t/timelion-holt-winters/45760/3 "2016-04-08T07:14:26Z")

</div>

I just did it, let's see how is answered.

> <https://github.com/elastic/timelion/issues/94>

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:56pm UTC](https://discuss.elastic.co/t/timelion-holt-winters/45760/4 "2017-07-06T13:56:33Z")

</div>

Closed on July 6, 2017, 1:56pm UTC


