Learn R Programming

cardinalR (version 1.0.6)

gen_clustloc: Generate Cluster Locations

Description

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

Usage

gen_clustloc(p = 4, k = 3)

Value

A matrix of the locations.

Arguments

p

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

k

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

Examples

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

Run the code above in your browser using DataLab