gau_clust {cardinalR}R Documentation

Generate synthetic data with Gaussian clusters

Description

Generate Gaussian Clusters

Usage

gau_clust(
  n,
  num_clust,
  mean_matrix,
  var_vec,
  num_dims,
  num_noise,
  min_n,
  max_n
)

Arguments

n

The total number of data points to be generated.

num_clust

The number of clusters to generate.

mean_matrix

A matrix where each row represents the mean vector for a cluster.

var_vec

A vector specifying the variance for each cluster.

num_dims

The number of effective dimensions for the data points.

num_noise

The number of additional noise dimensions to be generated.

min_n

The minimum value for the noise added to the data points.

max_n

The maximum value for the noise added to the data points.

Details

This function generates Gaussian clusters with specified parameters.

Value

A matrix containing the generated Gaussian clusters.

Examples


set.seed(20240412)
gau_clust(
  n = 300, num_clust = 5,
  mean_matrix = rbind(
    c(1, 0, 0, 0), c(0, 1, 0, 0), c(0, 0, 1, 0),
    c(0, 0, 0, 1), c(0, 0, 0, 0)
  ), var_vec = c(0.05, 0.05, 0.05, 0.05, 0.05),
  num_dims = 4, num_noise = 2, min_n = -0.05, max_n = 0.05
)

[Package cardinalR version 0.1.1 Index]