binScore: binScore

Description Usage Arguments Examples

View source: R/binScore.R

Description

binScore can be used to score scatterplots by directly comparing the sample counts with a matrix of minimal or maximal percentages/counts to be found in each cell. It implements the three bands rule implicitly by setting threshold values.

Usage

1
binScore(aGrid, aReq)

Arguments

aGrid

A matrix of counts as computed by 'calcFreqs' function

aReq

A matrix of minimum or maximum counts to be found in each cell if L-shape is TRUE

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
reqPercentages <- matrix (c(15, 5, 0, 0, 5, 5, 10, 10, 15), nrow=3, byrow=TRUE)
(countsRnd    <- matrix(floor(runif(9)*10)+1, nrow=3, ncol=3
(reqRnd <- toReqMat (sum(countsRnd), reqPercentages))
binScore(countsRnd, reqRnd)
(countsTrueL1 <- matrix (c(20, 3, 0, 10, 2, 2, 20, 10, 20), nrow=3, byrow=TRUE))
(reqTrueL <- toReqMat (sum(countsTrueL1), reqPercentages))
binScore(countsTrueL1, reqTrueL)

## End(Not run)

bertamiro/lpattern documentation built on July 19, 2019, 12:56 p.m.