Places n.centers
cluster centers in the two-dimensional
euclidean plane by means of a generator
, e.g., by Latin-Hypercube-Sampling (LHS).
addCenters(graph, n.centers = NULL, center.coordinates = NULL,
generator = NULL, ...)
[mcGP
] Multi-objective graph problem.
[mcGP
]
Multi-objective graph problem.
[integer(1)
]
Number of cluster centers.
[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.
[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
.
Other graph generators: addCoordinates
,
addWeights
, mcGP