The Euclidean distance matrix could be obtained by using
Code:
use http://www.stata-press.com/data/r10/iris.dta,clear matrix diss D = seplen sepwid petlen petwid, L2
[ATTACH=CONFIG]temp_17124_1582803101584_802[/ATTACH]
This formula is coming from the paper http://www.public.asu.edu/~huanliu/p...pakdd00clu.pdf page 4.
The tricky thing is the difference between two observations at a variable k is divided by the maxk - mink value of that variable k before calculating the distance.
Thank you so much for helping!
Best regards,
Jack
0 Response to Calculate normalized euclidean distance
Post a Comment