Package: clugenr 1.0.4.9000

Nuno Fachada

clugenr: Multidimensional Cluster Generation Using Support Lines

An implementation of the clugen algorithm for generating multidimensional clusters with arbitrary distributions. Each cluster is supported by a line segment, the position, orientation and length of which guide where the respective points are placed. This package is described in Fachada & de Andrade (2023) <doi:10.1016/j.knosys.2023.110836>.

Authors:Nuno Fachada [aut, cre, cph]

clugenr_1.0.4.9000.tar.gz
clugenr_1.0.4.9000.zip(r-4.7)clugenr_1.0.4.9000.zip(r-4.6)clugenr_1.0.4.9000.zip(r-4.5)
clugenr_1.0.4.9000.tgz(r-4.6-any)clugenr_1.0.4.9000.tgz(r-4.5-any)
clugenr_1.0.4.9000.tar.gz(r-4.7-any)clugenr_1.0.4.9000.tar.gz(r-4.6-any)
clugenr_1.0.4.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
clugenr/json (API)

# Install 'clugenr' in R:
install.packages('clugenr', repos = c('https://clugen.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/clugen/clugenr/issues

Pkgdown/docs site:https://clugen.github.io

On CRAN:

Conda:

multidimensional-clustersmultidimensional-datasynthetic-clusterssynthetic-data-generatorsynthetic-dataset-generation

5.94 score 5 stars 25 scripts 155 downloads 16 exports 1 dependencies

Last updated from:4238e0d6d0. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK135
source / vignettesOK209
linux-release-x86_64OK143
macos-release-arm64OK140
macos-oldrel-arm64OK189
windows-develOK98
windows-releaseOK96
windows-oldrelOK89
wasm-releaseOK119

Exports:angle_btwangle_deltasclucentersclugenclumergeclupoints_nclupoints_n_1clupoints_n_1_templateclusizesfix_emptyfix_num_pointsllengthspoints_on_linerand_ortho_vectorrand_unit_vectorrand_vector_at_angle

Dependencies:mathjaxr

Development
Setup clugenr development | Code style

Last update: 2025-07-07
Started: 2022-02-20

Examples in 2D
Manipulating the direction of cluster-supporting lines | Using the direction parameter | Changing the angle_disp parameter and using a custom angle_deltas_fn function | Manipulating the length of cluster-supporting lines | Using the llength parameter | Changing the llength_disp parameter and using a custom llengths_fn function | Manipulating relative cluster positions | Using the cluster_sep parameter | Changing the cluster_offset parameter and using a custom clucenters_fn function | Lateral dispersion and placement of point projections on the line | Normal projection placement (default): proj_dist_fn = "norm" | Uniform projection placement: proj_dist_fn = "unif" | Custom projection placement using the Beta distribution | Controlling final point positions from their projections on the cluster-supporting line | Points on hyperplane orthogonal to cluster-supporting line (default): point_dist_fn = "n-1" | Points around projection on cluster-supporting line: point_dist_fn = "n" | Custom point placement using the exponential distribution | Manipulating cluster sizes | Direct specification of optional parameters

Last update: 2025-07-07
Started: 2022-02-17

Examples in other dimensions
Basic 1D example with density plot | 5D example with default optional arguments | 5D example with proj_dist_fn = "unif" and point_dist_fn = "n"

Last update: 2025-07-07
Started: 2022-02-18

Merging and hierarchical cluster examples
Merging two data sets generated with clugen() | Adding noise to a clugen()-generated data set | Merging with data not generated with clugen()

Last update: 2025-07-07
Started: 2023-06-23

Theory

Last update: 2023-12-16
Started: 2022-02-16

Examples in 3D: part I
Manipulating the direction of cluster-supporting lines | Using the direction parameter | Changing the angle_disp parameter and using a custom angle_deltas_fn function | Specifying a main direction for each cluster and changing angle_disp | Manipulating the length of cluster-supporting lines | Using the llength parameter | Changing the llength_disp parameter and using a custom llengths_fn function | Manipulating relative cluster positions | Using the cluster_sep parameter | Changing the cluster_offset parameter and using a custom clucenters_fn function

Last update: 2023-12-16
Started: 2023-02-09

Examples in 3D: part II
Lateral dispersion and placement of point projections on the line | Normal projection placement (default): proj_dist_fn = "norm" | Uniform projection placement: proj_dist_fn = "unif" | Custom projection placement using the Beta distribution | Controlling final point positions from their projections on the cluster-supporting line | Points on hyperplane orthogonal to cluster-supporting line (default): point_dist_fn = "n-1" | Points around projection on cluster-supporting line: point_dist_fn = "n" | Custom point placement using the exponential distribution | Manipulating cluster sizes

Last update: 2023-12-16
Started: 2023-02-09