Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,180
Default How to calculate minimum distance between three coordinate withex

x = list of x coordinates
y = list of y coordinates
avgx=AVERAGE(x)
avgy=AVERAGE(y)
cov=COVAR(x,y)
varx=VARP(x)
vary=VARP(y)
d=2*(varx*vary-cov^2)
avgu=AVERAGE(((x-avgx)^2+(y-avgy)^2)*(x-avgx)) (an array formula-CSE)
avgv=AVERAGE(((x-avgx)^2+(y-avgy)^2)*(y-avgy)) (an array formula-CSE)
cx= avgx+(avgu*vary-avgv*cov)/d (x coordinate of center)
cy= avgy+(avgv*varx-avgu*cov)/d (y coordinate of center)

Kudos to Greg Egan at group comp.graphics.algorithms

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can excel calculate Mahalanobis distance? kt_b1 Excel Discussion (Misc queries) 3 March 24th 07 11:38 AM
Minimum Distance Calculation using Array and Geographical Coordinates geobatman Excel Discussion (Misc queries) 1 June 9th 06 10:49 PM
How to calculate speed given distance and mm:ss time format? rrl Excel Discussion (Misc queries) 1 October 21st 05 05:39 PM
Calculate Minimum numbers Pete Excel Worksheet Functions 2 May 12th 05 04:31 PM
CALCULATE DISTANCE BETWEEN TWO GPS POSITIONS Jon re Excel Excel Worksheet Functions 2 March 9th 05 02:14 AM


All times are GMT +1. The time now is 12:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"