| mosaic_sim | R Documentation |
Generates K feature-by-sample matrices that share a common set of
n samples drawn from g ground-truth groups. Each source has its
own informative features (shifted between groups) plus noise features, so the
clusters are only partially visible in any single source - the canonical
setting in which multi-source integration helps.
mosaic_sim(
n = 60,
g = 3,
p = c(120, 150),
informative = c(20, 25),
effect = 2.5,
K = 2,
seed = NULL
)
n |
Number of samples (objects). |
g |
Number of ground-truth groups. |
p |
Per-source feature counts (recycled to length |
informative |
Per-source number of group-informative features. |
effect |
Between-group mean shift for informative features. |
K |
Number of sources. |
seed |
Optional RNG seed. |
A list with List (the K matrices, objects in
rows, features in columns) and truth (the integer group label per
object).
sim <- mosaic_sim(n = 30, g = 3, K = 2, seed = 1)
lengths(lapply(sim$List, dim))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.