Skip to content

poiyzy/ex_exponential_smoothing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExExponentialSmoothing

Elixir Exponential Smoothing Implementation.

Description

Only Implemented Single Exponential Smoothing & Double Exponential Smoothing.

Installation

If available in Hex, the package can be installed by adding ex_exponential_smoothing to your list of dependencies in mix.exs:

def deps do
  [{:ex_exponential_smoothing, "~> 0.1.0"}]
end
{:ok, single_pid} = ExExponentialSmoothing.Single.start_link(0.4) # signal_mixing
{:ok, double_pid} = ExExponentialSmoothing.Double.start_link(0.4, 0.4) # signal_mixing, trend_mixing

If you don't pass any arguments to Single.start_link/1 or Double.start_link/2, signal_mixing default value will be 0.3, and double_mixing default value will be 0.3.

API

  • ExExponentialSmoothing.Single
    • calculate_signal/2
    • predict_next/1
    • current_signal/1
  • ExExponentialSmoothing.Double
    • calculate_signal/2
    • predict_next/1
    • current_trend/1
    • current_signal/1

TODO

  • Documentation.
  • Holt Winter.

About

Elixir Exponential Smoothing Implementation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages