{"id":16125726,"url":"https://github.com/dy/gaussian-fit","last_synced_at":"2025-10-13T01:48:31.028Z","repository":{"id":57245305,"uuid":"73605574","full_name":"dy/gaussian-fit","owner":"dy","description":"Fit mixture of gaussians into data","archived":false,"fork":false,"pushed_at":"2020-12-02T19:23:08.000Z","size":76,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-12T21:16:13.169Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://formant.github.io/gaussian-fit/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dy.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-13T09:08:00.000Z","updated_at":"2023-12-25T09:01:22.000Z","dependencies_parsed_at":"2022-09-01T04:31:21.106Z","dependency_job_id":null,"html_url":"https://github.com/dy/gaussian-fit","commit_stats":null,"previous_names":["dfcreative/gaussian-fit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dy/gaussian-fit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fgaussian-fit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fgaussian-fit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fgaussian-fit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fgaussian-fit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dy","download_url":"https://codeload.github.com/dy/gaussian-fit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fgaussian-fit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013906,"owners_count":26085326,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"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":[],"created_at":"2024-10-09T21:31:08.112Z","updated_at":"2025-10-13T01:48:30.983Z","avatar_url":"https://github.com/dy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gaussian-fit [![unstable](http://badges.github.io/stability-badges/dist/unstable.svg)](http://github.com/badges/stability-badges)\n\nFit time/spectrum/other sequential data with a set of gaussians by [expectation-maximization](https://en.wikipedia.org/wiki/Expectation%E2%80%93maximization_algorithm) algoritm.\n\n[![gaussian-fit](https://raw.githubusercontent.com/formant/gaussian-fit/gh-pages/preview.png \"gaussian-fit\")](http://dfcreative.github.io/gaussian-fit/)\n\n## Usage\n\n[![npm install gaussian-fit](https://nodei.co/npm/gaussian-fit.png?mini=true)](https://npmjs.org/package/gaussian-fit/)\n\n```js\nconst fit = require('gaussian-fit')\n\n// time/frequency/etc series\nlet data = [0, .1, .2, .5, .2, .1, 0]\n\nlet how = {\n\t// predefined components, each one is object {weight, mean, variance}\n\t// TODO if null - the components will be detected automatically\n\tcomponents: null,\n\n\t// TODO max number of components in case of auto-detection\n\tmaxNumber: 100,\n\n\t// max number of iterations\n\tmaxIterations: 200,\n\n\t// TODO min difference of likelihood\n\ttolerance: 1e-5,\n}\n\nlet components = fit(data, how)\n\ncomponents.forEach({weight, mean, variance} =\u003e {\n\t// every component is an object with weight, mean and variance properties\n})\n```\n\n## Similar\n\n* [gaussianmixture](https://www.npmjs.com/package/gaussianMixture) — classical gaussian mixture for 1d samples\n* [gaussian-mixture-estimator](https://github.com/rreusser/gaussian-mixture-estimator) — nd samples data estimation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdy%2Fgaussian-fit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdy%2Fgaussian-fit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdy%2Fgaussian-fit/lists"}