I would like to use the linkage function in matlab with a custom distance.
My distance function is in the form:
Distance = pdist(matrix,@mydistance);
so given a
matrix = rand(132,18)
Distance will be a vector [1x8646];
D_matrix = squareform(Distance,'tomatrix');
is a matrix 132x132
contaning all the pairwise distances between te rows of matrix
How can I embed mydistance
in linkage
?