Skip to content

Conversation

@kikoso
Copy link
Collaborator

@kikoso kikoso commented Jun 3, 2025

This PR adds a new algorithm, CentroidNonHierarchicalDistanceBasedAlgorithm.java. This algorithm extends from NonHierarchicalDistanceBasedAlgorithm, and incorporates a function to calculate the center of a cluster based on the centroid (instead of the former approach, which only kept into consideration the first item of the cluster). It also adds a test, to keep our test coverage happy.

@googlemaps-bot
Copy link
Contributor

googlemaps-bot commented Jun 3, 2025

Code Coverage

Overall Project 34.88% -0.22% 🍏
Files changed 46.88%

File Coverage
CentroidNonHierarchicalDistanceBasedAlgorithm.java 46.88% -53.13%

@dkhawk dkhawk merged commit 8b57c3a into main Jun 3, 2025
11 checks passed
@dkhawk dkhawk deleted the feat/added_centroid_algorithm branch June 3, 2025 22:52
googlemaps-bot pushed a commit that referenced this pull request Jun 3, 2025
# [3.14.0](v3.13.0...v3.14.0) (2025-06-03)

### Features

* added centroid algorithm ([#1520](#1520)) ([8b57c3a](8b57c3a))
* added logger in ClusterRendererMultipleItems ([#1519](#1519)) ([65498ba](65498ba))
@googlemaps-bot
Copy link
Contributor

🎉 This PR is included in version 3.14.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@googlemaps-bot
Copy link
Contributor

🎉 This PR is included in version 3.14.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

dkhawk pushed a commit that referenced this pull request Aug 6, 2025
* feat: added CentroidNonHierarchicalDistanceBasedAlgorithm.java

* feat: added a test

* docs: header
dkhawk pushed a commit that referenced this pull request Aug 6, 2025
# [3.14.0](v3.13.0...v3.14.0) (2025-06-03)

### Features

* added centroid algorithm ([#1520](#1520)) ([8b57c3a](8b57c3a))
* added logger in ClusterRendererMultipleItems ([#1519](#1519)) ([65498ba](65498ba))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants