The science of suckiness
June 8, 2009 10:07 AM
Subscribe
I want to calculate the mean of a matrix, but I don't want a value, I want co-ordinates.
The following math question has lots of terminology that I'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 matrix, mean and transformation without fully understanding them. For this I apologize.
Imagine a 10x10 matrix of integers, I wish to find the 'point of balance'. 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).
I don't want to work it our mechanically (using trig and moments and things of that ilk, besides the weight thing is an analogy, I'm looking at luminosity), I want to apply a matrix transformation if possible.
However my knowledge doesn't even let me begin to search on the type of transformation I need.
I have played with the mean of the rows and cols. In a 2x2 matrix for example
10,20
4,200
x = ((1 * 10) + (2 * 20) + (1 * 4) + (2 * 200)) / (10 + 20 + 4 + 200) = 1.94017094
y = ((1 * 10) + (2 * 4) + (1 * 20) + (2 * 200)) / (10 + 20 + 4 + 200) = 1.87179487
which looks right, but doesn't feel right. I'm sure we are missing something.
Any pointers/equations/corrections are very appreciated.
(The 'suckiness' in the title refers to the larger integers "sucking" the balance point towards them, not that I suck at science, which I do)
posted by handybitesize to science & nature (6 comments total)
1 user marked this as a favorite
x x
x x
is [1*x + 2*x]/2x for both coordinates, or (1.5,1.5) as you'd expect. Also, the "center" of
x 0
0 0
or any reflection/rotation thereof will be the location of x.
posted by 7segment at 10:21 AM on June 8