https://github.com/techgaun/ex_sma
Simple Moving Average calculation in Elixir
https://github.com/techgaun/ex_sma
elixir sma
Last synced: 3 months ago
JSON representation
Simple Moving Average calculation in Elixir
- Host: GitHub
- URL: https://github.com/techgaun/ex_sma
- Owner: techgaun
- License: apache-2.0
- Created: 2016-07-17T03:49:19.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-15T00:08:12.000Z (over 8 years ago)
- Last Synced: 2025-03-26T06:34:36.486Z (4 months ago)
- Topics: elixir, sma
- Language: Elixir
- Size: 9.77 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ex_sma [](https://hex.pm/packages/sma)  [](https://semaphoreci.com/techgaun/ex_sma) [](https://coveralls.io/github/techgaun/ex_sma?branch=master)
Simple Moving Average calculation in Elixir
### Installation
Add sma in the list of dependencies as below:
```
def deps do
[{:sma, "~> 0.1"}]
end
```or directly from github
```
def deps do
[{:sma, github: "techgaun/ex_sma"}]
end
```### Usage
```elixir
import SMA
sma([], 1)
# :errorsma([1,2,3,4,5], 2)
# [1.5, 2.5, 3.5, 4.5]
```