Computing Pairwise Distances and Metrics Matlab script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: pwmetric.zip
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: Matlab
  • Price:Freeware
  • Company: Dahua Lin (View more)

Computing Pairwise Distances and Metrics script description:



Computing Pairwise Distances and Metrics is a Matlab script for Mathematics scripts design by Dahua Lin. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Computing Pairwise Distances and Metrics - Compute pairwise distance or metric values between two sets of vectors

Publisher review:
Computing Pairwise Distances and Metrics - Compute pairwise distance or metric values between two sets of vectors slmetric_pw.h is an m-function to compute metrics between two sets of vectors in pairwise way. Main Features: - It supports about 20 metric types, including Euclidean distance (L2), Normalized Correlation, City-Block distance (L1), Quadratic distance, Minkowski distance, Hamming distance, Histogram Intersect, Chi-square distance, and information theoretical divergences, etc. - It is highly optimized by taking full advantage of vectorized computation. For some distances that are difficult to be fully vectorized, like city-block distance, C-mex implementation is offered. - It is easy to use with simple syntax. - It is sufficiently documented. You can type in "help slmetric_pw" to see the help on its usage.Examples are available to show how to invoke the function.Background:slmetric_pw.h is an important function in the core module of sltoolbox, which is a large set of functions for accomplishing many statistical learning tasks.I am now developing the second version of sltoolbox. Considering that some of the core functions can be applied to a much wider domain in technical computing, and that a long time is needed to make a new version of the whole toolbox ready, I would like to release some of these functions independently so that more fields can benefit from them.The function has been substantially rewritten based on new features of MATLAB 2007a with enhanced efficiency and stability.Examples:% prepare sample matrixX1 = rand(10, 100);X2 = rand(10, 150);% compute the euclidean distances (L2) between the samples in X1 and X2M = slmetric_pw(X1, X2, 'eucdist');% compute the eucidean distances between the samples in X1 in a pairwise mannerM = slmetric_pw(X1, X1, 'eucdist');% compute the city block distances (L1)M = slmetric_pw(X1, X2, 'cityblk'); % compute the normalize correlationsM = slmetric_pw(X1, X2, 'nrmcorr');% compute hamming distancesM = slmetric_pw(X1, X2, 'hamming', 0.5);M2 = slmetric_pw((X1 > 0.5), (X2 > 0.5), 'hamming');assert(isequal(M, M2));% compute weighted squared distances with user-supplied weightsweights = rand(10, 1);M = slmetric_pw(X1, X2, 'wsqdist', weights);% compute quadratic distances (x-y)^T * Q (x-y)Q = rand(10, 10);M = slmetric_pw(X1, X2, 'quaddiff', Q);% compute Minkowski distance of order 3 M = slmetric_pw(X1, X2, 'minkowski', 3);
Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Related script downloads:

Latest script and internet news

IE 10 for Windows 8, comes with Adobe Flash support

IE 10 for Windows 8, comes with Adobe Flash support

After criticism received at Metro version of Internet Explorer 10 , initially offered no support for Adobe Flash technology, Microsoft has taken measures to correct this problem by working directly with Adobe to integrate the necessary components into the

Posted on: 25 May 2012 10:36 by A. Brown

Windows 8: boot to fast to furious

Windows 8: boot to fast to furious

Last year began to circulate on the Internet videos where Windows 8 systems boot in 7 seconds. Unfortunately, from this performance derives some problems.

Posted on: 25 May 2012 07:28 by A. Brown

Apple prepares iPhone 5 and iOS 6

Apple prepares iPhone 5 and iOS 6

New information coming from some sources close to Apple confirming that the Cupertino giant is testing two different models of iPhone, called internal iPhone5, 1 and iPhone 5.2. Apparently, both devices have a screen of 3.95 inches and a resolution of 113

Posted on: 24 May 2012 08:36 by A. Brown

Windows 8 estimates: 500 million users in 2013

Windows 8 estimates: 500 million users in 2013

Microsoft expects to launch a new wave of optimism with Windows 8. In a recent statement, Steve Ballmer, chief executive at Microsoft, estimates that Windows 8 will reach a total of about 500 million users by the end of 2013.

Posted on: 24 May 2012 08:25 by A. Brown

SPREAD THE WORD

User Rating

Computing Pairwise Distances and Metrics
Rating: 5.0 out of 5
Based on 1 ratings. 1 user reviews.

  • Currently 5.00 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5