interspersion: Calculate interspersion

Description Arguments Author(s) Examples

Description

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

Arguments

mat

The mattrix to be checked. Usually a makeMatrix matrix.

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.

Author(s)

Jason Serviss

Examples

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)

GranderLab/ClusterSignificanceExtras documentation built on May 6, 2019, 6:30 p.m.