<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.nl/matlabcentral/newsreader/view_thread/285585</link>
    <title>MATLAB Central Newsreader - what distance metric is this?</title>
    <description>Feed for thread: what distance metric is this?</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2013 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.nl/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sun, 27 Jun 2010 14:22:06 +0000</pubDate>
      <title>what distance metric is this?</title>
      <link>http://www.mathworks.nl/matlabcentral/newsreader/view_thread/285585#757904</link>
      <author>shahnaz fatima</author>
      <description>v=double(x)*double(x');&lt;br&gt;
d(i,j)=sqrt(v(i,i)+v(j,j)-2*v(i,j)); %%%% what is this distance metric called?????&lt;br&gt;
&lt;br&gt;
can anybody explain.</description>
    </item>
    <item>
      <pubDate>Sun, 27 Jun 2010 15:22:04 +0000</pubDate>
      <title>Re: what distance metric is this?</title>
      <link>http://www.mathworks.nl/matlabcentral/newsreader/view_thread/285585#757920</link>
      <author>Roger Stafford</author>
      <description>"shahnaz fatima" &amp;lt;shahnaz1981fat@gmail.com&amp;gt; wrote in message &amp;lt;i07mqe$i8e$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; v=double(x)*double(x');&lt;br&gt;
&amp;gt; d(i,j)=sqrt(v(i,i)+v(j,j)-2*v(i,j)); %%%% what is this distance metric called?????&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; can anybody explain.&lt;br&gt;
- - - - - - - - -&lt;br&gt;
&amp;nbsp;&amp;nbsp;It looks very much like the Euclidean metric in R^n between the rows of x where n is the number of columns in x.&lt;br&gt;
&lt;br&gt;
Roger Stafford</description>
    </item>
    <item>
      <pubDate>Sun, 27 Jun 2010 15:32:05 +0000</pubDate>
      <title>Re: what distance metric is this?</title>
      <link>http://www.mathworks.nl/matlabcentral/newsreader/view_thread/285585#757922</link>
      <author>John D'Errico</author>
      <description>"shahnaz fatima" &amp;lt;shahnaz1981fat@gmail.com&amp;gt; wrote in message &amp;lt;i07mqe$i8e$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; v=double(x)*double(x');&lt;br&gt;
&amp;gt; d(i,j)=sqrt(v(i,i)+v(j,j)-2*v(i,j)); %%%% what is this distance metric called?????&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; can anybody explain.&lt;br&gt;
&lt;br&gt;
Euclidean distance.&lt;br&gt;
&lt;br&gt;
But done very poorly, because it uses a doubly nested&lt;br&gt;
loop to do work that is far better done with no explicit&lt;br&gt;
loops at all.&lt;br&gt;
&lt;br&gt;
Even worse, it is inaccurate and subject to numerical&lt;br&gt;
problems in some cases. &lt;br&gt;
&lt;br&gt;
A better tool can be found here:&lt;br&gt;
&lt;br&gt;
&lt;a href="http://www.mathworks.com/matlabcentral/fileexchange/18937"&gt;http://www.mathworks.com/matlabcentral/fileexchange/18937&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
John</description>
    </item>
    <item>
      <pubDate>Sun, 27 Jun 2010 16:03:06 +0000</pubDate>
      <title>Re: what distance metric is this?</title>
      <link>http://www.mathworks.nl/matlabcentral/newsreader/view_thread/285585#757926</link>
      <author>Faraz Afzal</author>
      <description>"shahnaz fatima" &amp;lt;shahnaz1981fat@gmail.com&amp;gt; wrote in message &amp;lt;i07mqe$i8e$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; v=double(x)*double(x');&lt;br&gt;
&amp;gt; d(i,j)=sqrt(v(i,i)+v(j,j)-2*v(i,j)); %%%% what is this distance metric called?????&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; can anybody explain.&lt;br&gt;
&lt;br&gt;
Hi&lt;br&gt;
&lt;br&gt;
This look to me like a Euclidean metric in the nth space. Mapping v's for the given xs.&lt;br&gt;
If you have a Square matrix data use Chebyshev distance for much efficiency.&lt;br&gt;
&lt;br&gt;
I hope it answers the question. Let us know what you are trying to achieve?&lt;br&gt;
&lt;br&gt;
Regards,&lt;br&gt;
Faraz Afzal</description>
    </item>
  </channel>
</rss>
