{"id":32113989,"url":"https://github.com/ggb/elm-trend","last_synced_at":"2026-07-16T05:32:39.587Z","repository":{"id":52684792,"uuid":"64242152","full_name":"ggb/elm-trend","owner":"ggb","description":"Regression and time series forecasting","archived":false,"fork":false,"pushed_at":"2021-04-21T06:45:56.000Z","size":27,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-09T13:38:35.890Z","etag":null,"topics":["elm","forecast","trends"],"latest_commit_sha":null,"homepage":null,"language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ggb.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":"2016-07-26T17:46:14.000Z","updated_at":"2021-04-21T06:45:18.000Z","dependencies_parsed_at":"2022-08-22T05:00:46.737Z","dependency_job_id":null,"html_url":"https://github.com/ggb/elm-trend","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/ggb/elm-trend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggb%2Felm-trend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggb%2Felm-trend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggb%2Felm-trend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggb%2Felm-trend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ggb","download_url":"https://codeload.github.com/ggb/elm-trend/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggb%2Felm-trend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35532635,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-16T02:00:06.687Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["elm","forecast","trends"],"created_at":"2025-10-20T15:06:04.533Z","updated_at":"2026-07-16T05:32:39.582Z","avatar_url":"https://github.com/ggb.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# elm-trend\r\n\r\nCalculate trend lines and forecast based on seasonal data.\r\n\r\n![The github-page shows a nice example chart.](https://github.com/ggb/elm-trend/blob/master/trends.png \"Green: Actual Data; Blue: Trend Line; Red: Seasonal Forecast\")\r\n\r\nThe chart was created with [wuct/elm-charts](http://package.elm-lang.org/packages/wuct/elm-charts/latest). \r\n\r\n## Installation\r\n\r\n```bash\r\nelm package install ggb/elm-trend\r\n```\r\n\r\n## Usage\r\n\r\nUsage is straightforward: \r\n\r\n```elm\r\nimport Linear\r\nimport Seasonal\r\n\r\ndata = \r\n  [ 362, 385, 432, 341, 382, 409, ... ]\r\n\r\n-- Create linear trend function\r\nlinearTrend = Linear.regression data\r\n\r\n-- Seasonal forecast\r\nperiod = 4\r\nforecastData = Seasonal.forecast period\r\n```\r\n\r\nTake a look at example/SeasonalTest.elm for a more detailed example.\r\n\r\n## Future\r\n\r\nIdeas for future development:\r\n\r\n* Implementing [ARIMA](https://en.wikipedia.org/wiki/Autoregressive_integrated_moving_average)\r\n* Multivariant regression and other regression types","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fggb%2Felm-trend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fggb%2Felm-trend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fggb%2Felm-trend/lists"}