does this require a one dimensional distance metric? Or is it multivariate?