Description Arguments Author(s) Examples
Calculates the interspersion between 2 groups. For example, if the the groups are alternating when the points are ordered, the interspersion will be 100 lay within the other groups minimum point and its minimum - 1 point, the result will be 0
mat |
The mattrix to be checked. Usually a |
groups |
A character vector indicating the groups location within the matrix. Can be generated with the makeGroups function. Can only accept 2 groups. |
dim |
Which dimention of the matrix to check. |
Jason Serviss
1 2 3 4 5 6 7 | mat <- makeMatrix(x=c(0,1), y=c(0,1), dim=2, points=10, seed=15)
groups <- makeGroups(mat, names=c("g1", "g2"))
interspersion(mat, groups, 1)
mat <- makeMatrix(x=c(0,1), y=c(0.9,0.95), dim=2, points=10, seed=15)
groups <- makeGroups(mat, names=c("g1", "g2"))
interspersion(mat, groups, 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.