dptmCpp {kamila} | R Documentation |
A function that calculates a NxM matrix of distances between a NxP set of points and a MxP set of points.
dptmCpp(pts, myMeans, wgts)
pts |
A matrix of points |
myMeans |
A matrix of centroids, must have same ncol as pts |
wgts |
A Px1 vector of variable weights |
A MxP matrix of distances