Description Usage Arguments Value Examples
Checks whether the point test is in the convex hull of the rows of X. This function will take the matrix X and the vector test as inputs, and return a binary variable, which is 1 if the point test is in the convex hull of the rows of X, and 0 otherwise.
1 | chullcheck(X, test)
|
X |
An n by d matrix. |
test |
An n by 1 vector. |
A binary variable, which is 1 if the point test is in the convex hull of the rows of X, and 0 otherwise.
1 2 3 4 5 | ## We demonstrate an example, where the point test is in the convex hull of the rows of X.
X<-matrix(c(0,0,1,1,0,1,0,1),4,2)
test<-c(0.3,0.4)
out = chullcheck(X,test)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.