panditakshay402 / Hacktoberfest

Join the Hacktoberfest fun! Contribute to this repo and earn cool swag while improving open-source projects.
115 stars 412 forks source link

Create k_means_clustering.cpp #358

Open Moumita-08 opened 1 month ago

Moumita-08 commented 1 month ago

This pull request adds a C++ implementation of the K-Means Clustering algorithm, which uses Euclidean distance to group data points based on proximity to centroids. Users can specify the number of clusters, data points, and iterations. After processing, the final centroids and cluster assignments are displayed, providing a foundational tool for clustering analysis.