<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: The science of suckiness</title>
	<link>http://ask.metafilter.com/124190/The-science-of-suckiness/</link>
	<description>Comments on Ask MetaFilter post The science of suckiness</description>
	<pubDate>Mon, 08 Jun 2009 10:21:26 -0800</pubDate>
	<lastBuildDate>Mon, 08 Jun 2009 10:21:26 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: The science of suckiness</title>
		<link>http://ask.metafilter.com/124190/The-science-of-suckiness</link>	
		<description>I want to calculate the mean of a matrix, but I don&apos;t want a value, I want co-ordinates. &lt;small&gt;The following math question has lots of terminology that I&apos;m not qualified to use i.e. most of it is wrong. I hope you can see through this and help me. I will be using the words &lt;em&gt;matrix&lt;/em&gt;, &lt;em&gt;mean&lt;/em&gt; and &lt;em&gt;transformation&lt;/em&gt; without fully understanding them. For this I apologize.&lt;/small&gt; &lt;br /&gt;&lt;br /&gt; Imagine a 10x10 matrix of integers, I wish to find the &apos;point of balance&apos;. That is, if the integers were weights and the matrix a sheet of plywood, it is where I would place a pivot for the sheet to remain in balance (assume the plywood has no weight). &lt;br&gt;
&lt;br&gt;
I don&apos;t want to work it our mechanically (using trig and moments and things of that ilk, besides the weight thing is an analogy, I&apos;m looking at luminosity), I want to apply a matrix transformation if possible.&lt;br&gt;
&lt;br&gt;
However my knowledge doesn&apos;t even let me begin to search on the type of transformation I need. &lt;br&gt;
&lt;br&gt;
I have played with the mean of the rows and cols. In a 2x2 matrix for example&lt;br&gt;
&lt;br&gt;
10,20&lt;br&gt;
4,200&lt;br&gt;
&lt;br&gt;
x = ((1 * 10) + (2 * 20) + (1 * 4) + (2 * 200)) / (10 + 20 + 4 + 200) = 1.94017094&lt;br&gt;
y = ((1 * 10) + (2 * 4) + (1 * 20) + (2 * 200)) / (10 + 20 + 4 + 200) = 1.87179487&lt;br&gt;
&lt;br&gt;
which looks right, but doesn&apos;t feel right. I&apos;m sure we are missing something.&lt;br&gt;
&lt;br&gt;
Any pointers/equations/corrections are very appreciated.&lt;br&gt;
&lt;br&gt;
(The &apos;suckiness&apos; in the title refers to the larger integers &quot;sucking&quot; the balance point towards them, not that I suck at science, which I do)</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2009:site.124190</guid>
		<pubDate>Mon, 08 Jun 2009 10:07:15 -0800</pubDate>
		<dc:creator>handybitesize</dc:creator>
		
			<category>math</category>
		
			<category>mathematics</category>
		
			<category>matrix</category>
		
			<category>transformation</category>
		
			<category>resolved</category>
		
	</item> <item>
		<title>By: 7segment</title>
		<link>http://ask.metafilter.com/124190/The-science-of-suckiness#1774937</link>	
		<description>What you&apos;re talking about is a &lt;i&gt;weighted mean&lt;/i&gt;, and, in your example, you&apos;re doing it correctly.  I&apos;m not sure why your example doesn&apos;t feel right to you, but the 200 &quot;sucks&quot; a lot (it&apos;s around a factor of 10 larger than the other entries, and the coordinates you realize are only about 10% away from its location).  Note that this answer is preserved by rotating the matrix or reflecting it over its axes (x&apos; = 1.05982906, y&apos; = 1.12820513).  Also note some extreme cases... for any x, the &quot;center&quot; of the matrix&lt;br&gt;
&lt;br&gt;
x x&lt;br&gt;
x x&lt;br&gt;
&lt;br&gt;
is [1*x + 2*x]/2x for both coordinates, or (1.5,1.5) as you&apos;d expect.  Also, the &quot;center&quot; of &lt;br&gt;
&lt;br&gt;
x 0&lt;br&gt;
0 0&lt;br&gt;
&lt;br&gt;
or any reflection/rotation thereof will be the location of x.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.124190-1774937</guid>
		<pubDate>Mon, 08 Jun 2009 10:21:26 -0800</pubDate>
		<dc:creator>7segment</dc:creator>
	</item><item>
		<title>By: milqman</title>
		<link>http://ask.metafilter.com/124190/The-science-of-suckiness#1774953</link>	
		<description>The center of mass formula should work here (which is what you are implementing).  I think you have it right.  There might be something more sophisticated you can do but I don&apos;t know what that would be without knowing the type of pattern you are looking for.&lt;br&gt;
&lt;br&gt;
So, without knowing more, I&apos;d say you are right.  Watch your coordinates though, you want to make sure that you keep careful track of your row and column indexes!</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.124190-1774953</guid>
		<pubDate>Mon, 08 Jun 2009 10:28:35 -0800</pubDate>
		<dc:creator>milqman</dc:creator>
	</item><item>
		<title>By: Lemurrhea</title>
		<link>http://ask.metafilter.com/124190/The-science-of-suckiness#1774963</link>	
		<description>Yeah you&apos;ve got it right.  You&apos;ll find it a bit easier in a 10x10 case to use the sum of the columns when finding the x-coord and use the sum of the rows when finding the y-coord.&lt;br&gt;
&lt;br&gt;
So if you had:&lt;br&gt;
&lt;br&gt;
x&lt;sub&gt;00&lt;/sub&gt; x&lt;sub&gt;01&lt;/sub&gt; ... x&lt;sub&gt;09&lt;/sub&gt;&lt;br&gt;
x&lt;sub&gt;10&lt;/sub&gt; x&lt;sub&gt;11&lt;/sub&gt; ... x&lt;sub&gt;19&lt;/sub&gt;&lt;br&gt;
.&lt;br&gt;
.&lt;br&gt;
x&lt;sub&gt;90&lt;/sub&gt;x&lt;sub&gt;91&lt;/sub&gt; ... x&lt;sub&gt;99&lt;/sub&gt;&lt;sup&gt;1&lt;/sup&gt;&lt;br&gt;
&lt;br&gt;
You&apos;d want  &lt;code&gt; x&lt;sub&gt;middle&lt;/sub&gt; = [1*(x&lt;sub&gt;00&lt;/sub&gt; + x&lt;sub&gt;10&lt;/sub&gt; + ... + x&lt;sub&gt;90&lt;/sub&gt;) + 2*(x&lt;sub&gt;01&lt;/sub&gt;...) + ...]/SUM.&lt;/code&gt;&lt;br&gt;
It&apos;ll be a lot easier for you to work with.  But you&apos;ve definitely got it.&lt;br&gt;
&lt;br&gt;
&lt;small&gt;1: starting at 0 for consistent formatting.&lt;/small&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.124190-1774963</guid>
		<pubDate>Mon, 08 Jun 2009 10:35:16 -0800</pubDate>
		<dc:creator>Lemurrhea</dc:creator>
	</item><item>
		<title>By: mbrubeck</title>
		<link>http://ask.metafilter.com/124190/The-science-of-suckiness#1775005</link>	
		<description>See also &lt;a href=&quot;http://en.wikipedia.org/wiki/Center_of_mass&quot;&gt;Center of mass&lt;/a&gt; on Wikipedia, which agrees with everything above.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.124190-1775005</guid>
		<pubDate>Mon, 08 Jun 2009 10:54:27 -0800</pubDate>
		<dc:creator>mbrubeck</dc:creator>
	</item><item>
		<title>By: handybitesize</title>
		<link>http://ask.metafilter.com/124190/The-science-of-suckiness#1775017</link>	
		<description>Oh wow - multiple &quot;ur doing it right&quot; replies before I got home. Thanks all. I&apos;ll run it against some edge cases now, because maybe my its my eyes that&apos;s misinterpreting the expected result</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.124190-1775017</guid>
		<pubDate>Mon, 08 Jun 2009 10:58:02 -0800</pubDate>
		<dc:creator>handybitesize</dc:creator>
	</item><item>
		<title>By: Netzapper</title>
		<link>http://ask.metafilter.com/124190/The-science-of-suckiness#1775065</link>	
		<description>Having done a lot of image processing and computer vision...&lt;br&gt;
&lt;br&gt;
Since your math is right, but you say &quot;maybe my its my eyes that&apos;s misinterpreting the expected result&quot;, it&apos;s possible that you&apos;re just barking up the wrong tree.  I&apos;ve definitely spent the better part of a couple days working out a particularly tricky convolution, only to find that the visual result is &lt;i&gt;nothing&lt;/i&gt; like what I was imagining.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.124190-1775065</guid>
		<pubDate>Mon, 08 Jun 2009 11:24:24 -0800</pubDate>
		<dc:creator>Netzapper</dc:creator>
	</item>
	</channel>
</rss>
