Learn R Programming

wrMisc (version 1.15.3.1)

.insp1dimByClustering: Segment (1-dim vector) 'dat' into clusters

Description

This function allows aegmenting (1-dim vector) 'dat' into clusters. If 'automClu=TRUE ..' first try automatic clustering, if too few clusters, run km with length(dat)^0.3 clusters This function requires the package NbClust to be installed.

Usage

.insp1dimByClustering(
  dat,
  automClu = TRUE,
  cluChar = TRUE,
  silent = FALSE,
  debug = FALSE,
  callFrom = NULL
)

Value

This function returns clustering (class index) or (if 'cluChar'=TRUE) list with clustering and cluster-characteristics

Arguments

dat

matrix or data.frame, main input

automClu

(logical) run atomatic clustering

cluChar

(logical) to display cluster characteristics

silent

(logical) suppress messages

debug

(logical) additional messages for debugging

callFrom

(character) allow easier tracking of messages produced

See Also

searchLinesAtGivenSlope

Examples

Run this code
set.seed(2016); dat1 <- matrix(c(runif(200)+rep(1:10,20)),ncol=10)

Run the code above in your browser using DataLab