Code covered by the BSD License  

Highlights from
Pairwise distance between 2 group of vectors (multidimensional)

Be the first to rate this file! 8 Downloads (last 30 days) File Size: 1.55 KB File ID: #33017

Pairwise distance between 2 group of vectors (multidimensional)

by Trung Duong

 

26 Sep 2011

Find pair-wise WEIGHTED SQUARE EUCLIDEAN distance distance between 2 group of vectors

| Watch this File

File Information
Description

% Find pair-wise SQUARE EUCLIDEAN distance
% or 'Weighted square euclidean' distance
% between each point in A and B
% For 2 vector a, b
% Euclidean distance= d = sum((a-b).^2)
% Weighted version = d = sum(wts.*(a-b).^2)
% ------------------------------
% Input:
% A= m_by_p, m points in p-dimension
% B= n_by_p, n points in p-dimension
% Wts = 1_by_p, defaut = [1 1 ...]
% Results:
% DD= m_by_n
% ------------------------------
% Facts: (a-b)^2= a^2+b^2-2ab
% ------------------------------
% trungd@okstate.edu, Feb 2011
% ------------------------------
% Ideal from: Piotr Dollar. [pdollar-at-caltech.edu]

See more detail at my blog: http://trunghuyduong.blogspot.com/2011/09/pair-wise-weighted-euclidean-distance.html

MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
pairwise distance Trung Duong 26 Sep 2011 09:33:24
euclidean distance Trung Duong 26 Sep 2011 09:33:24
weighted euclidean distance Trung Duong 26 Sep 2011 09:33:24

Contact us at files@mathworks.com