gen_clustloc: Generate Cluster Locations

View source: R/util.R

gen_clustlocR Documentation

Generate Cluster Locations

Description

This function generate locations for any number of clusters in any dimensions.

Usage

gen_clustloc(p = 4, k = 3)

Arguments

p

A numeric value (default: 4) representing the number of dimensions.

k

A numeric value (default: 3) representing the number of clusters.

Value

A matrix of the locations.

Examples

set.seed(20240412)
gen_clustloc(p = 4, k = 3)


cardinalR documentation built on Aug. 21, 2025, 5:27 p.m.