View source: R/create_ClusterSystem.R
create_ClusterSystem | R Documentation |
In order to allow interaction of an spatial a correlation clusters in RLumCarlo, first a dosimetric system needs to be created in a three-dimensional space, which is the purpose of this function.
create_ClusterSystem(n = 100, h = 0.5, plot = FALSE, ...)
n |
numeric (with default): number of clusters to be created in an arbitrary 3-dimensional cube. x, y, z distances range between 0 and 1. |
h |
numeric (with default): numeric scalar the cut the cluster tree using stats::cutree. The number must range between 0 and 1. |
plot |
logical (with default): enables/disables plot output |
... |
further arguments to be passed to the plot output |
The function returns a list of class RLumCarlo_clusters
consisting
of numeric vector of cluster groups and a matrix of the cluster positions
in the arbitrary space. If plot = TRUE
the system is displayed using
scatterplot3d::scatterplot3d
0.1.0
Kreutzer, S., 2022. create_ClusterSystem(): Create dosimetric cluster system. Function version 0.1.0. In: Friedrich, J., Kreutzer, S., Pagonis, V., Schmidt, C., 2022. RLumCarlo: Monte-Carlo Methods for Simulating Luminescence Phenomena. R package version 0.1.9. https://CRAN.R-project.org/package=RLumCarlo
Sebastian Kreutzer, Institute of Geography, Heidelberg University (Germany)
stats::dist, stats::hclust, stats::cutree
create_ClusterSystem(n = 10, plot = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.