Learn R Programming

cvxclustr (version 1.1.1)

create_clustering_problem: Create a random clustering problem

Description

create_clustering_problem makes a random clustering problem for testing purposes.

Usage

create_clustering_problem(p, n, seed = 12345, nnn = 3, method = "ama")

Arguments

p
Dimension of space of points to be clustered
n
Number of points
seed
Random number seed
nnn
Number of nearest neighbors
method
'ama' or 'admm'

Examples

Run this code
p <- 10
n <- 20
seed <- 12345
rnd_problem_admm <- create_clustering_problem(p,n,seed)

Run the code above in your browser using DataLab