{"id":22979522,"url":"https://github.com/petabi/petal-clustering","last_synced_at":"2025-04-06T09:10:25.340Z","repository":{"id":40464105,"uuid":"190630783","full_name":"petabi/petal-clustering","owner":"petabi","description":"DBSCAN, HDBSCAN, and OPTICS clustering algorithms.","archived":false,"fork":false,"pushed_at":"2025-03-05T18:46:22.000Z","size":133,"stargazers_count":32,"open_issues_count":9,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-30T08:11:12.744Z","etag":null,"topics":["clustering","dbscan","hdbscan","optics"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/petabi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-06T18:31:20.000Z","updated_at":"2025-03-05T18:41:08.000Z","dependencies_parsed_at":"2023-12-21T02:12:54.924Z","dependency_job_id":"c9a19b52-f273-449a-99d1-4f0c4f6bf125","html_url":"https://github.com/petabi/petal-clustering","commit_stats":{"total_commits":89,"total_committers":4,"mean_commits":22.25,"dds":0.4831460674157303,"last_synced_commit":"27c3968c038fe791a901a381fea81bdfea3b60b7"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petabi%2Fpetal-clustering","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petabi%2Fpetal-clustering/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petabi%2Fpetal-clustering/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petabi%2Fpetal-clustering/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/petabi","download_url":"https://codeload.github.com/petabi/petal-clustering/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247457803,"owners_count":20941906,"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":["clustering","dbscan","hdbscan","optics"],"created_at":"2024-12-15T01:31:45.925Z","updated_at":"2025-04-06T09:10:25.322Z","avatar_url":"https://github.com/petabi.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# petal-clustering\n\nA collection of clustering algorithms. Currently this crate provides DBSCAN,\nHDBSCAN and OPTICS.\n\n[![crates.io](https://img.shields.io/crates/v/petal-clustering)](https://crates.io/crates/petal-clustering)\n[![Documentation](https://docs.rs/petal-clustering/badge.svg)](https://docs.rs/petal-clustering)\n[![Coverage Status](https://codecov.io/gh/petabi/petal-clustering/branch/master/graphs/badge.svg)](https://codecov.io/gh/petabi/petal-clustering)\n\n## Examples\n\nThe following example shows how to cluster points using DBSCAN.\n\n```rust\nuse ndarray::array;\nuse petal_clustering::{Dbscan, Fit};\n\nlet points = array![[1., 2.], [2., 2.], [2., 2.3], [8., 7.], [8., 8.], [25., 80.]];\nlet clustering = Dbscan::new(3.0, 2).fit(\u0026points);\n\nassert_eq!(clustering.0.len(), 2);        // two clusters found\nassert_eq!(clustering.0[\u00260], [0, 1, 2]);  // the first three points in Cluster 0\nassert_eq!(clustering.0[\u00261], [3, 4]);     // [8., 7.] and [8., 8.] in Cluster 1\nassert_eq!(clustering.1, [5]);            // [25., 80.] doesn't belong to any cluster\n```\n\n## License\n\nCopyright 2019-2024 Petabi, Inc.\n\nLicensed under [Apache License, Version 2.0][apache-license] (the \"License\");\nyou may not use this crate except in compliance with the License.\n\nUnless required by applicable law or agreed to in writing, software distributed\nunder the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR\nCONDITIONS OF ANY KIND, either express or implied. See [LICENSE](LICENSE) for\nthe specific language governing permissions and limitations under the License.\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the [Apache-2.0\nlicense][apache-license], shall be licensed as above, without any additional\nterms or conditions.\n\n[apache-license]: http://www.apache.org/licenses/LICENSE-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetabi%2Fpetal-clustering","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetabi%2Fpetal-clustering","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetabi%2Fpetal-clustering/lists"}