EMCC (version 1.3)

utilsForExamples: The utility function(s) for examples

Description

The utility function(s) that are used in the example sections of the exported functions in this package.

Usage

partitionRep(clusterInd)
clusterPlot(clusterInd,                    
            data,                  
            main              = '',     
            sub               = '',     
            knownClusterMeans = NULL,   
            …) 
KMeansFuncGenerator1(seed, plotIt = TRUE)

Arguments

clusterInd
vector of cluster indicators.
data
a matrix with two columns representing the two-dimensional data clustered by clusterInd.
main
the title of the plot.
sub
the sub-title of the plot.
knownClusterMeans
a matrix with two columns (for the two dimensions), the rows containing the cluster means. These are plotted when provided.
seed
the seed for random number generation.
plotIt
logical, controls the plotting of the generated data.
optional arguments to be passed to plot; see its documentation.

Value

partitionRep
this function returns a list with two components, namely, clusterLabels (the unique cluster identifiers) and clusters (the partitioning of the cluster identifiers), as a list.

KMeansFuncGenerator1
this function returns a list containing the objects to be used as arguments to the exported functions in the respective example sections of this package.

See Also

evolMonteCarloClustering, findMaxTemper, placeTempers