checkIdenticalMatrix: Check Identical Matrices

Description Arguments Author(s) Examples

Description

This function takes an input matrix (mat), typically from makeMatrix, and an array contaning other matrices (otherMatrices) of the same dimensionality. The function checks if the matrix is identical to any of the other matrices submitted. This was designed for running replicate experiments when each replicate should be unique and is used with the overlapMatrices, overlapProbability, and zeroOrHundred functions.

Arguments

mat

The matrix to be checked.

otherMatrices

an array of the other matrices to be checked against.

ident

A boolean value. Do not alter.

Author(s)

Jason Serviss

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
mat <- makeMatrix(x=c(0,1), y=c(0,1), dim=2, points=10, seed=11)
otherMatrices <- array(NA, dim=c(20, 2, 1))
otherMatrices[,,1] <- mat[[1]]
checkIdenticalMatrix(mat, otherMatrices)

otherMatrices <- array(NA, dim=c(20, 2, 1))
otherMatrices[,,1] <- makeMatrix(
   x=c(0,1),
   y=c(0,1),
   dim=2,
   points=10,
   seed=50
)[[1]]
checkIdenticalMatrix(mat, otherMatrices)

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