I have a data set with equidistant points with different values, like a 2D matrix, for example:
[[1, 2, 1, 5, 6]
[2, 1, 4, 7, 6],
[5, 1, 9, 3, 7]]
I want to do clustering based on the value, but with the points being spatially (equidistant) constrained. I plot this data in a colourmap, so perhaps to group the data based on values close to each other.
Are there any algorithms for this?
(Edited for clarity)