Merge data for multiple design sites
[mS,mY] = dsmerge(S,Y,ds,nms,wtds,wtdy)
data points S(i,:), i=1,...,m
data points Y(i,:), i=1,...,m
Threshold for equal, normalized sites. Default is 1e-14
Norm, in which the distance is measured. nms = 1 : 1-norm (sum of absolute coordinate differences) 2 : 2-norm (Euclidean distance) (default)
What to do with the S-values in case of multiple points. wtds = 1 : return the mean value (default) 2 : return the median value 3 : return the 'cluster center'
What to do with the Y-values in case of multiple points. wtdy = 1 : return the mean value (default) 2 : return the median value 3 : return the 'cluster center' value 4 : return the minimum value 5 : return the maximum value
Compressed design sites, with multiple points merged according to wtds
Responses, compressed according to wtdy
Merge data for multiple design sites
ycollet@freesurf.fr