[PR #589] [MERGED] feat: K Means Clustering Added #1023

Open
opened 2026-01-29 15:16:54 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/TheAlgorithms/C/pull/589
Author: @Lakhan-Nad
Created: 8/4/2020
Status: Merged
Merged: 8/8/2020
Merged by: @kvedala

Base: masterHead: master


📝 Commits (10+)

  • bcd48d7 feat: K Means Clustering Added
  • bc0c269 Update k_means_clustering.c
  • 0d2761b Update k_means_clustering.c
  • 6783efb Update k_means_clustering.c
  • 69675e0 Update k_means_clustering.c
  • 92585e8 Update machine_learning/k_means_clustering.c
  • 90152e7 update: change in docs and a new test added
  • 85a0eb2 Update machine_learning/k_means_clustering.c
  • 6e68800 Update machine_learning/k_means_clustering.c
  • 341a355 update: scale down rand() before multiplication

📊 Changes

1 file changed (+335 additions, -0 deletions)

View changed files

machine_learning/k_means_clustering.c (+335 -0)

📄 Description

Implemented K Means Clustering in C
The data set used for implementing is ordered pair(x,y) in 2D plane.

Description of Change

References

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes:
The Link Checks are always failing I am really unable to understand why
If you can refer some resources to learn about it that would be really helpful.


���� This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/TheAlgorithms/C/pull/589 **Author:** [@Lakhan-Nad](https://github.com/Lakhan-Nad) **Created:** 8/4/2020 **Status:** ✅ Merged **Merged:** 8/8/2020 **Merged by:** [@kvedala](https://github.com/kvedala) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (10+) - [`bcd48d7`](https://github.com/TheAlgorithms/C/commit/bcd48d792601bbcb454cbe0366261c97aa88428e) feat: K Means Clustering Added - [`bc0c269`](https://github.com/TheAlgorithms/C/commit/bc0c2695a974e63c1e225cea402267053ffbbf89) Update k_means_clustering.c - [`0d2761b`](https://github.com/TheAlgorithms/C/commit/0d2761bef344cbaed070ed930e85d7be5b86ac63) Update k_means_clustering.c - [`6783efb`](https://github.com/TheAlgorithms/C/commit/6783efbb3ba90f0dad3ff73febde8d3a85e6facc) Update k_means_clustering.c - [`69675e0`](https://github.com/TheAlgorithms/C/commit/69675e09a19ec59af9a6b416dc86cda2f511b2cc) Update k_means_clustering.c - [`92585e8`](https://github.com/TheAlgorithms/C/commit/92585e8e428292bfff80d3cae51b41f2026eda56) Update machine_learning/k_means_clustering.c - [`90152e7`](https://github.com/TheAlgorithms/C/commit/90152e73d9f7ccf5a6d3493b1c04dc53e233b8f3) update: change in docs and a new test added - [`85a0eb2`](https://github.com/TheAlgorithms/C/commit/85a0eb21c7397162b6673fdae57955903ae39a64) Update machine_learning/k_means_clustering.c - [`6e68800`](https://github.com/TheAlgorithms/C/commit/6e688003545c3def8460d934307b34439c52dff9) Update machine_learning/k_means_clustering.c - [`341a355`](https://github.com/TheAlgorithms/C/commit/341a355a1f6e9646e452eed2baf6dbf4e42cfd91) update: scale down rand() before multiplication ### 📊 Changes **1 file changed** (+335 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `machine_learning/k_means_clustering.c` (+335 -0) </details> ### 📄 Description Implemented K Means Clustering in C The data set used for implementing is ordered pair(x,y) in 2D plane. #### Description of Change <!-- Thank you for your Pull Request. Please provide a description above and review the requirements below. Contributors guide: https://github.com/TheAlgorithms/C-Plus-Plus/CONTRIBUTING.md --> #### References <!-- Add any reference to previous pull-request or issue --> #### Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [x] Added description of change - [x] Added file name matches [File name guidelines](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/CONTRIBUTING.md#New-File-Name-guidelines) - [x] Added tests and example, test must pass - [x] Relevant documentation/comments is changed or added - [x] PR title follows semantic [commit guidelines](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/CONTRIBUTING.md#Commit-Guidelines) - [x] Search previous suggestions before making a new one, as yours may be a duplicate. - [x] I acknowledge that all my contributions will be made under the project's license. Notes: <!-- Please add a one-line description for developers or pull request viewers --> The Link Checks are always failing I am really unable to understand why If you can refer some resources to learn about it that would be really helpful. <a href="https://gitpod.io/#https://github.com/TheAlgorithms/C/pull/589"><img src="https://gitpod.io/api/apps/github/pbs/github.com/Lakhan-Nad/C.git/74cf22122a3f5d97389bfb4f22293827987209c2.svg" /></a> --- <sub>���� This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 15:16:54 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#1023