[R] Maximize volume of cloud

From: Stefaan Lhermitte <stefaan.lhermitte_at_biw.kuleuven.be>
Date: Fri 13 May 2005 - 03:54:59 EST

Dear R-ians,

I have a datamatrix X of nrows (large) and 3 colums. The 3 columns represent the coordinates of a cloud in a 3 dimensional space. Now I want to find the extremes of my cloud by using the N-FINDR algoritm. This algorithm consists of maximizing the volume between tree points. Therefore I need an optimaztion script, but I don't have any idea how to program it.

According to literature the maximization of the volume can be replaced by maximizinng the determinant of E,
E<-matrix(c(1,e1,1,e2,1,e3), ncol=3)
and e1 to e3 are initially column vectors of the coordinates of random points.

The procedure works by replacing an existing e1, e2 or e2 with another trial point. If the replacement results in an increase of determinant(E), the newly chosen pixel will replace the previous pixel. The procedure has to be repeated till there are no possible replacements left. In this way I get the coordinates of my extremes by e1 to e3.

Anyone any idea how to program this?

Kind regards and thanx in advance!

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri May 13 03:58:26 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:45 EST