The raw data contains a set of series data and coordinates.
Can clusters by the correlation of the series data and the distance of the coordinates simultaneously?
Maybe it is a question about using DistanceFunction or CriterionFunction.
However, I have not been able to find a suitable reference. Can anybody help?
data = Import["data.csv", "CSV"];
data = Map[
AssociationThread[{"sequenceData",
"Locs"} -> {#[[1 ;; 24]], #[[25 ;; 26]]}] &, data];
c = FindClusters[data -> Range@Length@data];
p = Table[(#Locs -> Mean@DeleteMissing@#sequenceData) &@
data[[c[[i, j]]]], {i, 1, Length@c}, {j, 1, Length@c[[i]]}];
Show[Table[PointValuePlot[p[[i]]], {i, 1, Length@p}]]

Attachments: