Here are three points and a hierarchical clustering using hclust
in R with the "centroid" method.
points <- data.frame(x = c(0, 1, 0.75),
y = c(0, 0, 1))
centroid <- hclust(dist(points), method = "centroid")
plot(centroid)
The resulting dendrogram correctly merges the first and second points. (The distance is 1.) The centroid of the first two points is at (0.5, 0).
The third point merges at a height of 0.8903882, creating an inversion (or reversal as some call it). In fact, the third point is at a distance of 1.030776 from the centroid, so there should be no inversion.
What am I missing here?