makeF {evclust}R Documentation

Creation of a matrix of focal sets

Description

makeF creates a matrix of focal sets

Usage

makeF(c, type = c("simple", "full", "pairs"), pairs = NULL, Omega = TRUE)

Arguments

c

Number of clusters.

type

Type of focal sets ("simple": \emptyset, singletons and \Omega; "full": all 2^c subsets of \Omega; "pairs": \emptyset, singletons, \Omega, and all or selected pairs).

pairs

Set of pairs to be included in the focal sets; if NULL, all pairs are included. Used only if type="pairs".

Omega

Logical. If TRUE (default), \Omega is a focal set (for types 'simple' and 'pairs').

Value

A matrix (f,c) of focal sets.

Examples

c<-4
## Generation of all 16 focal sets
F<-makeF(c,type='full')
## Generation of focal sets of cardinality 0, 1 and c
F<-makeF(c,type='simple')
## Generation of focal sets of cardinality 0, 1, and 2
F<-makeF(c,type='pairs',Omega=FALSE)
## Generation of focal sets of cardinality 0, 1, and c, plus the pairs (1,2) and (1,3)
F<-makeF(c,type='pairs',pairs=matrix(c(1,2,1,3),nrow=2,byrow=TRUE))


[Package evclust version 2.0.3 Index]