Description Usage Arguments Details Examples
numScore
A function to score scatterplot using a weight matrix.
1 | numScore(aGrid, LShaped, aWeightMifL, aWeightMifNonL)
|
aGrid |
A matrix of counts as computed by 'calcFreqs' function |
LShaped |
A boolean value indicating if this scatterplot can be seen as LShaped. |
aWeightMifL |
A matrix of weights to score the previous counts if the scatterplot has been classified as L. |
aWeightMifNonL |
A matrix of weights to score the previous counts if the scatterplot has been classified as non-L |
The scoring does not incorporate logical conditions such as "if xij < C ..."
1 2 3 4 5 6 7 | # xVecT <- as.numeric(trueLMet[1,]); yVecT<- as.numeric(trueLExpr[1,])
# xVecF <- as.numeric(falseLMet[1,]); yVecF <- as.numeric(falseLExpr[1,])
# trueFreq <- calcFreqs(xMet=xVecT, yExp=yVecT, x1=1/3, x2=2/3)
# falseFreq <- calcFreqs(xMet=xVecF, yExp=yVecF, x1=1/3, x2=2/3)
# weightsIfL <- matrix (c(2,-1,-99,1,0,-1,1,1,2), nrow=3, byrow=TRUE)
# weightsIfNonL <- matrix (c(0,-1,-99,0,0,-1,0,0,0), nrow=3, byrow=TRUE)
# numScore (trueFreq, weights)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.