I just contect R,and still learn how to write the code.
I have a problem with argmin sum d(pi,p)/n 
for example I have 3 points (a1,b1)(a2,b2)(a3,b3) ,then I want to find
p(x,y) make sure that 
(sqrt((a1-x)^2+(b1-y)^2)+sqrt((a2-x)^2+(b2-y)^2)+sqrt((a3-x)^2+(b3-y)^2))/3
is the minimum.



-- 
View this message in context: 
http://r.789695.n4.nabble.com/Minimization-of-the-distance-tp3081345p3081345.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to