[R] Chull function
Richard.Cotton at hsl.gov.uk
Richard.Cotton at hsl.gov.uk
Mon Mar 9 11:55:07 CET 2009
> Using a simulation, I have to find what are the probabilities that,
> in a square region, the convex hull is a triangle, using the "chull"
> function. However, I have a hard time with the chull function, i
> did not see many examples in which the chull function is used. I
> searched a long time on google, but I did not find nothing. So, if
> anyone can help,
The chull function returns the indexes of the points in the input that
form the convex hull. Thus, to test whether or not the convex hull is a
triangle, you simply test to see if its length is 3, i.e.
length(chull(x)) == 3
If you need more information, you'll have to provide a reproducible
example.
Regards,
Richie.
Mathematical Sciences Unit
HSL
------------------------------------------------------------------------
ATTENTION:
This message contains privileged and confidential inform...{{dropped:20}}
More information about the R-help
mailing list