Learn R Programming

COveR (version 1.0.1)

ikmeans: Interval kmeans clustering.

Description

Culster interval data with kmeans algorithm.

Usage

ikmeans(x, centers, nstart = 10, distance = "euclid", trace = FALSE,
  iter.max = 20)

Arguments

x

An 3D interval array.

centers

A number or interval, number of cluster for clustering or pre init centers.

nstart

A number, number of execution to find the best result.

distance

A string ('euclid': Euclidian distance, 'hausdorff': Hausdorff distance).

trace

A boolean, tracing information on the progress of the algorithm is produced.

iter.max

the maximum number of iterations allowed.

Examples

Run this code
# NOT RUN {
ikmeans(iaggregate(iris, col=5), 2)
ikmeans(iaggregate(iris, col=5), iaggregate(iris, col=5))
# }

Run the code above in your browser using DataLab