<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Cheap GPS and Code Project Tutorial</title>
	<atom:link href="http://eric.ness.net/archives/cheap-gps-and-code-project-tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://eric.ness.net/archives/cheap-gps-and-code-project-tutorial/</link>
	<description>...I never learned to read.</description>
	<lastBuildDate>Wed, 14 Sep 2011 02:19:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Shobhit Paliwal</title>
		<link>http://eric.ness.net/archives/cheap-gps-and-code-project-tutorial/comment-page-1/#comment-147</link>
		<dc:creator>Shobhit Paliwal</dc:creator>
		<pubDate>Tue, 19 Apr 2011 13:54:19 +0000</pubDate>
		<guid isPermaLink="false">http://eric.ness.net/blog/archives/cheap-gps-and-code-project-tutorial/#comment-147</guid>
		<description>To Eric,
The clustering doesn&#039;t seems to be work due to an error caused by imatrix maths operation...an unidentified assembly or reference not found being pointed out ...

please help me out in this one..</description>
		<content:encoded><![CDATA[<p>To Eric,<br />
The clustering doesn&#8217;t seems to be work due to an error caused by imatrix maths operation&#8230;an unidentified assembly or reference not found being pointed out &#8230;</p>
<p>please help me out in this one..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vijay</title>
		<link>http://eric.ness.net/archives/cheap-gps-and-code-project-tutorial/comment-page-1/#comment-145</link>
		<dc:creator>vijay</dc:creator>
		<pubDate>Wed, 23 Feb 2011 09:31:36 +0000</pubDate>
		<guid isPermaLink="false">http://eric.ness.net/blog/archives/cheap-gps-and-code-project-tutorial/#comment-145</guid>
		<description>Dear Eric,

I had a couple of problems with ur beautiful kmeans doc clus.

1. I hav Dundas Chart professional edition, which didnt support the following statements:
i. DataSet myDocs = Chart1.DataManipulator.ExportSeriesValues(&quot;Series1&quot;);
ii. DataSet myKMeansPoints =        Chart1.DataManipulator.ExportSeriesValues(&quot;Series3&quot;);

So, I tried as follows:
        DataSet myDocs = new DataSet();
        DataTable dt1 = new DataTable(&quot;Series1&quot;);
        myDocs.Tables.Add(dt1);
        DataPoint temppt = Chart1.Series[&quot;Series1&quot;].Points[0];
        dt1.Columns.Add(&quot;X&quot;);
        dt1.Columns.Add(&quot;Y&quot;);
        for(int c=2; c&lt;temppt.YValues.Length; c++)
            dt1.Columns.Add(&quot;Y&quot;+c);
    for (int j=0;j&lt;Chart1.Series[&quot;Series1&quot;].Points.Count;j++)
    {
            DataPoint p = Chart1.Series[&quot;Series1&quot;].Points[j];
            DataRow row = dt1.NewRow();
            row[0] = p.XValue;
            for (int i = 0; i &lt; p.YValues.Length; i++)
                row[i+1] = p.YValues[i];
            dt1.Rows.Add(row);
    }
for both Series1[mydocs] and Series3[mykmeanspoints]

- now that compiled and gave me some gud results. Can u please evaluate my code.

2. after the above changes, if i remove the comments for 
        //double[,] myWords = mylsi.MyWords;
        //PlotWords(myDocs, mylsi.MyWordsRowCount);
am getting indexoutofrange problem. 
i observed that the matrix has 12 rows and 9 cols.
The problem is in PlotWords method:
private void PlotWords(double[,]myWords,int myWordsRowCount)
    {
        for (int i = 0; i  size 9 X 2
// myWordsRowCount -&gt; 12
// &quot;Matrix words = reducedWordVector*reducedSigma&quot; ???
        }
        ...

Can u please help me out here !</description>
		<content:encoded><![CDATA[<p>Dear Eric,</p>
<p>I had a couple of problems with ur beautiful kmeans doc clus.</p>
<p>1. I hav Dundas Chart professional edition, which didnt support the following statements:<br />
i. DataSet myDocs = Chart1.DataManipulator.ExportSeriesValues(&#8220;Series1&#8243;);<br />
ii. DataSet myKMeansPoints =        Chart1.DataManipulator.ExportSeriesValues(&#8220;Series3&#8243;);</p>
<p>So, I tried as follows:<br />
        DataSet myDocs = new DataSet();<br />
        DataTable dt1 = new DataTable(&#8220;Series1&#8243;);<br />
        myDocs.Tables.Add(dt1);<br />
        DataPoint temppt = Chart1.Series["Series1"].Points[0];<br />
        dt1.Columns.Add(&#8220;X&#8221;);<br />
        dt1.Columns.Add(&#8220;Y&#8221;);<br />
        for(int c=2; c&lt;temppt.YValues.Length; c++)<br />
            dt1.Columns.Add(&quot;Y&quot;+c);<br />
    for (int j=0;j&lt;Chart1.Series[&quot;Series1&quot;].Points.Count;j++)<br />
    {<br />
            DataPoint p = Chart1.Series[&quot;Series1&quot;].Points[j];<br />
            DataRow row = dt1.NewRow();<br />
            row[0] = p.XValue;<br />
            for (int i = 0; i &lt; p.YValues.Length; i++)<br />
                row[i+1] = p.YValues[i];<br />
            dt1.Rows.Add(row);<br />
    }<br />
for both Series1[mydocs] and Series3[mykmeanspoints]</p>
<p>- now that compiled and gave me some gud results. Can u please evaluate my code.</p>
<p>2. after the above changes, if i remove the comments for<br />
        //double[,] myWords = mylsi.MyWords;<br />
        //PlotWords(myDocs, mylsi.MyWordsRowCount);<br />
am getting indexoutofrange problem.<br />
i observed that the matrix has 12 rows and 9 cols.<br />
The problem is in PlotWords method:<br />
private void PlotWords(double[,]myWords,int myWordsRowCount)<br />
    {<br />
        for (int i = 0; i  size 9 X 2<br />
// myWordsRowCount -&gt; 12<br />
// &#8220;Matrix words = reducedWordVector*reducedSigma&#8221; ???<br />
        }<br />
        &#8230;</p>
<p>Can u please help me out here !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://eric.ness.net/archives/cheap-gps-and-code-project-tutorial/comment-page-1/#comment-131</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Sat, 17 Apr 2010 05:18:45 +0000</pubDate>
		<guid isPermaLink="false">http://eric.ness.net/blog/archives/cheap-gps-and-code-project-tutorial/#comment-131</guid>
		<description>Hey Salma - The k-means class on &lt;a href=&quot;http://eric.ness.net/archives/k-means-document-clustering/&quot; rel=&quot;nofollow&quot;&gt;http://eric.ness.net/archives/k-means-document-clustering/&lt;/a&gt; is in C#. Or over at &lt;a href=&quot;http://www.codeproject.com/KB/recipes/K-Mean_Clustering.aspx&quot; rel=&quot;nofollow&quot;&gt;http://www.codeproject.com/KB/recipes/K-Mean_Clustering.aspx&lt;/a&gt;. Let me know if you have any other questions.</description>
		<content:encoded><![CDATA[<p>Hey Salma &#8211; The k-means class on <a href="http://eric.ness.net/archives/k-means-document-clustering/" rel="nofollow">http://eric.ness.net/archives/k-means-document-clustering/</a> is in C#. Or over at <a href="http://www.codeproject.com/KB/recipes/K-Mean_Clustering.aspx" rel="nofollow">http://www.codeproject.com/KB/recipes/K-Mean_Clustering.aspx</a>. Let me know if you have any other questions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: salma</title>
		<link>http://eric.ness.net/archives/cheap-gps-and-code-project-tutorial/comment-page-1/#comment-130</link>
		<dc:creator>salma</dc:creator>
		<pubDate>Sat, 17 Apr 2010 05:02:11 +0000</pubDate>
		<guid isPermaLink="false">http://eric.ness.net/blog/archives/cheap-gps-and-code-project-tutorial/#comment-130</guid>
		<description>hi i need source code for k-means clustering algorithm for documents...in c#.plz any one have this code then send to my mail.Thanks in advance.</description>
		<content:encoded><![CDATA[<p>hi i need source code for k-means clustering algorithm for documents&#8230;in c#.plz any one have this code then send to my mail.Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aresh</title>
		<link>http://eric.ness.net/archives/cheap-gps-and-code-project-tutorial/comment-page-1/#comment-79</link>
		<dc:creator>Aresh</dc:creator>
		<pubDate>Tue, 17 Nov 2009 11:47:09 +0000</pubDate>
		<guid isPermaLink="false">http://eric.ness.net/blog/archives/cheap-gps-and-code-project-tutorial/#comment-79</guid>
		<description>interesting implementation!</description>
		<content:encoded><![CDATA[<p>interesting implementation!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Radski</title>
		<link>http://eric.ness.net/archives/cheap-gps-and-code-project-tutorial/comment-page-1/#comment-32</link>
		<dc:creator>Radski</dc:creator>
		<pubDate>Tue, 01 Sep 2009 22:45:15 +0000</pubDate>
		<guid isPermaLink="false">http://eric.ness.net/blog/archives/cheap-gps-and-code-project-tutorial/#comment-32</guid>
		<description>Thanks very much, same book same error...</description>
		<content:encoded><![CDATA[<p>Thanks very much, same book same error&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nadya</title>
		<link>http://eric.ness.net/archives/cheap-gps-and-code-project-tutorial/comment-page-1/#comment-31</link>
		<dc:creator>Nadya</dc:creator>
		<pubDate>Wed, 05 Aug 2009 12:30:20 +0000</pubDate>
		<guid isPermaLink="false">http://eric.ness.net/blog/archives/cheap-gps-and-code-project-tutorial/#comment-31</guid>
		<description>Eric, 

thank you very much for your answer. I spent one day trying to understand why my calculattions for Toy and LaSalle in the book do not match values i get. 

Soriano,
Thank you very much for raising this issue so readers can find an answer on this page.

Nadya</description>
		<content:encoded><![CDATA[<p>Eric, </p>
<p>thank you very much for your answer. I spent one day trying to understand why my calculattions for Toy and LaSalle in the book do not match values i get. </p>
<p>Soriano,<br />
Thank you very much for raising this issue so readers can find an answer on this page.</p>
<p>Nadya</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://eric.ness.net/archives/cheap-gps-and-code-project-tutorial/comment-page-1/#comment-29</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Sun, 07 Jun 2009 04:26:49 +0000</pubDate>
		<guid isPermaLink="false">http://eric.ness.net/blog/archives/cheap-gps-and-code-project-tutorial/#comment-29</guid>
		<description>Hey Soriano,

I think you are correct in pointing out this error. My guess is that probably got missed during editing.

Wikipedia has it stated as thus: 

Two-dimensional distance

For two 2D points, P=(p_x,p_y)\, and Q=(q_x,q_y)\,, the distance is computed as:

    \sqrt{(p_x-q_x)^2 + (p_y-q_y)^2}. 

http://en.wikipedia.org/wiki/Euclidean_distance

So in python it should read as you&#039;ve written it:

&gt;&gt; sqrt(pow(1.0-2.0,2)+pow(4.5-4.0,2))
1.11803398875

Good catch!

Eric</description>
		<content:encoded><![CDATA[<p>Hey Soriano,</p>
<p>I think you are correct in pointing out this error. My guess is that probably got missed during editing.</p>
<p>Wikipedia has it stated as thus: </p>
<p>Two-dimensional distance</p>
<p>For two 2D points, P=(p_x,p_y)\, and Q=(q_x,q_y)\,, the distance is computed as:</p>
<p>    \sqrt{(p_x-q_x)^2 + (p_y-q_y)^2}. </p>
<p><a href="http://en.wikipedia.org/wiki/Euclidean_distance" rel="nofollow">http://en.wikipedia.org/wiki/Euclidean_distance</a></p>
<p>So in python it should read as you&#8217;ve written it:</p>
<p>>> sqrt(pow(1.0-2.0,2)+pow(4.5-4.0,2))<br />
1.11803398875</p>
<p>Good catch!</p>
<p>Eric</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Soriano</title>
		<link>http://eric.ness.net/archives/cheap-gps-and-code-project-tutorial/comment-page-1/#comment-28</link>
		<dc:creator>Soriano</dc:creator>
		<pubDate>Sun, 07 Jun 2009 02:03:43 +0000</pubDate>
		<guid isPermaLink="false">http://eric.ness.net/blog/archives/cheap-gps-and-code-project-tutorial/#comment-28</guid>
		<description>Hi,
IÂ´m reading the same book, and I had an doubt.
In &quot;Euclidean Distance Score&quot; the autor have been used 
a simple function:

&gt;&gt; sqrt(pow(5-4,2)+pow(4-1,2))
3.1622776601683795

The values used in the function, the author
have been talked to calculate the distance
between Toby and LaSalle in the chart on the
figure 2-1.

But in the chart Toby has Snakes 4.5 and Dupree to 1.0
and LaSalle 4.0 to Snakes and 2.0 to Dupree.

My question is:
Why he didnÂ´t used this values as below.

D(Toby,LaSalle) = 
&gt;&gt; sqrt(pow(1.0-2.0,2)+pow(4.5-4.0,2))
3.1622776601683795

Regards,

Soriano from Brazil</description>
		<content:encoded><![CDATA[<p>Hi,<br />
IÂ´m reading the same book, and I had an doubt.<br />
In &#8220;Euclidean Distance Score&#8221; the autor have been used<br />
a simple function:</p>
<p>&gt;&gt; sqrt(pow(5-4,2)+pow(4-1,2))<br />
3.1622776601683795</p>
<p>The values used in the function, the author<br />
have been talked to calculate the distance<br />
between Toby and LaSalle in the chart on the<br />
figure 2-1.</p>
<p>But in the chart Toby has Snakes 4.5 and Dupree to 1.0<br />
and LaSalle 4.0 to Snakes and 2.0 to Dupree.</p>
<p>My question is:<br />
Why he didnÂ´t used this values as below.</p>
<p>D(Toby,LaSalle) =<br />
&gt;&gt; sqrt(pow(1.0-2.0,2)+pow(4.5-4.0,2))<br />
3.1622776601683795</p>
<p>Regards,</p>
<p>Soriano from Brazil</p>
]]></content:encoded>
	</item>
</channel>
</rss>

