{"id":18689174,"url":"https://github.com/joshuaclayton/moving-averages","last_synced_at":"2025-04-12T05:46:17.722Z","repository":{"id":56847518,"uuid":"90318273","full_name":"joshuaclayton/moving-averages","owner":"joshuaclayton","description":null,"archived":false,"fork":false,"pushed_at":"2017-05-12T22:45:00.000Z","size":27,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-02-21T10:22:02.151Z","etag":null,"topics":["haskell","mathematics","moving-average"],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joshuaclayton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-04T23:26:41.000Z","updated_at":"2019-12-05T10:06:19.000Z","dependencies_parsed_at":"2022-09-12T11:44:34.084Z","dependency_job_id":null,"html_url":"https://github.com/joshuaclayton/moving-averages","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshuaclayton%2Fmoving-averages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshuaclayton%2Fmoving-averages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshuaclayton%2Fmoving-averages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshuaclayton%2Fmoving-averages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joshuaclayton","download_url":"https://codeload.github.com/joshuaclayton/moving-averages/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223500734,"owners_count":17155823,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["haskell","mathematics","moving-average"],"created_at":"2024-11-07T10:41:22.199Z","updated_at":"2024-11-07T10:41:22.799Z","avatar_url":"https://github.com/joshuaclayton.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# moving-averages\n\nThis is a library for calculating moving averages on lists of numbers.\n\n## Usage\n\n```haskell\nimport qualified Data.MovingAverage as MA\n\nresultValues :: Floating a =\u003e MA.SmoothedResults a -\u003e [a]\nresultValues = map MA.srSmoothedValue . MA.srsResults\n\n-- window of 2\nresultValues \u003c$\u003e MA.simple 2 [5, 10, 20, 2]\n-- Right [5.0, 7.5, 15.0, 11.0]\n\n-- alpha of 0.5\nresultValues \u003c$\u003e MA.singleExponential 0.5 [1, 2, 3, 4, 5]\n-- Right [1, 1.5, 2.25, 3.125, 4.0625]\n\n-- alpha of 0.5, beta of 0.1\nresultValues \u003c$\u003e MA.doubleExponential 0.5 0.1 [3, 1, 4, 6, 8]\n-- Right [3.0, 1.0, 1.5, 2.875, 4.71875]\n```\n\n## License\n\nCopyright 2017 Josh Clayton. See the [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshuaclayton%2Fmoving-averages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoshuaclayton%2Fmoving-averages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshuaclayton%2Fmoving-averages/lists"}