% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-sim.R
\name{mosaic_sim}
\alias{mosaic_sim}
\title{Simulate a multi-source data set with planted clusters}
\usage{
mosaic_sim(
  n = 60,
  g = 3,
  p = c(120, 150),
  informative = c(20, 25),
  effect = 2.5,
  K = 2,
  seed = NULL
)
}
\arguments{
\item{n}{Number of samples (objects).}

\item{g}{Number of ground-truth groups.}

\item{p}{Per-source feature counts (recycled to length \code{K}).}

\item{informative}{Per-source number of group-informative features.}

\item{effect}{Between-group mean shift for informative features.}

\item{K}{Number of sources.}

\item{seed}{Optional RNG seed.}
}
\value{
A list with \code{List} (the \code{K} matrices, \strong{objects in
rows}, features in columns) and \code{truth} (the integer group label per
object).
}
\description{
Generates \code{K} feature-by-sample matrices that share a common set of
\code{n} samples drawn from \code{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.
}
\examples{
sim <- mosaic_sim(n = 30, g = 3, K = 2, seed = 1)
lengths(lapply(sim$List, dim))
}
