cls_set_section: Section of two subsets - External Measure utilities

cls.set.sectionR Documentation

Section of two subsets - External Measure utilities

Description

Function finds section of two different subsets comming from the same data set.

Usage

cls.set.section(clust1, clust2)

Arguments

clust1

n x 2 integer matrix or data.frame. First column gives information about object number in data set in increasing order. Second column store information about cluster id the object is assigned to. If matrix is not an integer type, it will be coerced with warning.

clust2

n x 2 integer matrix or data.frame. First column gives information about object number in data set in increasing order. Second column store information about cluster id the object is assigned to. If matrix is not an integer type, it will be coerced with warning.

Details

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.

Value

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.

Author(s)

Lukasz Nieweglowski

See Also

Function preapres data for further computation. Result mostly is used in: std.ext, dot.product, confusion.matrix

Examples

# 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)

clv documentation built on Sept. 28, 2023, 9:06 a.m.

Related to cls_set_section in clv...