{"id":31848318,"url":"https://github.com/charmitro/cdbscan","last_synced_at":"2025-10-12T10:23:40.613Z","repository":{"id":313424336,"uuid":"1051371910","full_name":"charmitro/cdbscan","owner":"charmitro","description":"DBSCAN clustering algorithm implementation in C","archived":false,"fork":false,"pushed_at":"2025-09-05T22:56:30.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-06T00:26:42.692Z","etag":null,"topics":["c","clustering","dbscan","kdtree"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/charmitro.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-05T21:51:24.000Z","updated_at":"2025-09-05T22:56:33.000Z","dependencies_parsed_at":"2025-09-06T00:26:45.202Z","dependency_job_id":"0ef9934d-9ba6-4301-b46d-9642e0374608","html_url":"https://github.com/charmitro/cdbscan","commit_stats":null,"previous_names":["charmitro/cdbscan"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/charmitro/cdbscan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charmitro%2Fcdbscan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charmitro%2Fcdbscan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charmitro%2Fcdbscan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charmitro%2Fcdbscan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/charmitro","download_url":"https://codeload.github.com/charmitro/cdbscan/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charmitro%2Fcdbscan/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279011061,"owners_count":26084864,"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":["c","clustering","dbscan","kdtree"],"created_at":"2025-10-12T10:23:38.000Z","updated_at":"2025-10-12T10:23:40.608Z","avatar_url":"https://github.com/charmitro.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cdbscan\n\nA C library implementing the DBSCAN (Density-Based Spatial Clustering of Applications with Noise) algorithm, based on the original KDD-96 paper by Ester et al.\n\n## Building\n\n```bash\n$ make\n$ make test                 # Run tests\n$ make install              # Install to /usr/local\n$ make install PREFIX=/path # Custom installation path\n```\n\n## Usage\n\n```c\n#include \u003ccdbscan.h\u003e\n\n// Create points\ncdbscan_point_t* points = cdbscan_create_points(num_points, 2);\n\n// Populate with your data\nfor (int i = 0; i \u003c num_points; i++) {\n\tpoints[i].coords[0] = x_data[i];\n\tpoints[i].coords[1] = y_data[i];\n}\n\n// Set parameters\ncdbscan_params_t params = {\n\t.eps = 0.5,                         // Neighborhood radius\n\t.min_pts = 4,                       // Minimum points for core\n\t.dist_type = CDBSCAN_DIST_EUCLIDEAN,\n\t.use_kdtree = 1                     // Enable O(n log n) mode\n};\n\n// Run clustering\nint num_clusters = cdbscan_cluster(points, num_points, params);\n\n// Check results (cluster_id: \u003e=0 cluster, -2 noise)\nfor (int i = 0; i \u003c num_points; i++) {\n\tprintf(\"Point %d: cluster %d\\n\", i, points[i].cluster_id);\n}\n```\n\n## Examples\n\n```bash\n$ make examples\n$ ./examples/example                 # Basic usage\n$ ./examples/example_kdtree          # Performance comparison\n```\n\n## Authors\n\n* Charalampos Mitrodimas \u003ccharmitro@posteo.net\u003e\n* The cdbscan developers\n\n## License\n\nGNU General Public License v3.0 - see LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharmitro%2Fcdbscan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharmitro%2Fcdbscan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharmitro%2Fcdbscan/lists"}