Holtwinters
No description available
Install / Use
/learn @rubygarage/HoltwintersREADME
Holt-Winters
Exponential smoothing is a rule of thumb technique for smoothing time series data, particularly for recursively applying as many as three low-pass filters with exponential window functions.
https://en.wikipedia.org/wiki/Exponential_smoothing
Installation
npm install holtwinters --save
Usage
var holtWinters = require('holtwinters')
var getAugumentedDataset = holtWinters.getAugumentedDataset
var data = [1, 4, 5, 3, 1, 3, 4, 1, 2, 4, 5, 5]
var predictionLength = 4
var result = getAugumentedDataset(data, predictionLength)
console.log(result)
// OUTPUT:
{
augumentedDataset: [1, 4, 5, 3, 1, 3, 4, 1, 2, 4, 5, 5, 1.3338017069503336, 2.9451723210706824, 5.691675635182751, 6.721827583201698],
alpha: 0.1,
beta: 1,
gamma: 0.4,
period: 5,
mse: 2.0945071482039226,
sse: 14.661550037427457,
mpe: 0.06217855085131068
}
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
