cls.set.section | R Documentation |
Function finds section of two different subsets comming from the same data set.
cls.set.section(clust1, clust2)
clust1 |
n x 2 integer |
clust2 |
n x 2 integer |
Let A and B be two different subsamples of the same data set.
Each subset is partitioned into P(A) and P(B) cluster sets. Information about object and cluster id's
for pairs (A,P(A)) and (B,P(B)) are stored in matrices clust1
and clust2
.
Function creates matrix which represents section of A and B.
cls.set.section
returns a n x 3 integer matrix
.
First column gives information about object number in dataset in increasing order.
Second column store information about cluster id the object is assigned to.
Information is taken from clust1 vector
The same is for the third column but cluster id is taken from vector clust2
.
Lukasz Nieweglowski
Function preapres data for further computation. Result mostly is used in:
std.ext
, dot.product
, confusion.matrix
# create two different subsamples
mx1 <- matrix(as.integer( c(1,2,3,4,5,6,1,1,2,2,3,3) ), 6, 2 )
mx2 <- matrix(as.integer( c(1,2,4,5,6,7,1,1,2,2,3,3) ), 6, 2 )
# find section
m = cls.set.section(mx1,mx2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.