Learn R Programming

mcMST (version 1.0.1)

addCenters: Add cluster centers to graph.

Description

Places n.centers cluster centers in the two-dimensional euclidean plane by means of a generator, e.g., by Latin-Hypercube-Sampling (LHS).

Usage

addCenters(graph, n.centers = NULL, center.coordinates = NULL,
  generator = NULL, ...)

Value

[mcGP] Multi-objective graph problem.

Arguments

graph

[mcGP]
Multi-objective graph problem.

n.centers

[integer(1)]
Number of cluster centers.

center.coordinates

[matrix(n, 2)]
Matrix of center coordinates (each row is one point). Default is NULL. If this is set, n.centers and generator are ignored.

generator

[function(n, ...)]
Function used to generate cluster centers. The generator needs to expect the number of points to generate as the first argument n. Additional control argument are possible.

...

[any]
Additional arguments passed down to generator.

See Also

Other graph generators: addCoordinates, addWeights, mcGP