get_mixture_data: Extractor for simulated data from two-component mixture

View source: R/extractors.R

get_mixture_dataR Documentation

Extractor for simulated data from two-component mixture

Description

Get the mixture data generated from method twoComp_mixt().

Usage

get_mixture_data(x)

Arguments

x

An object of class twoComp_mixt.

Value

A numeric vector of the simulated data.

Author(s)

Xavier Milhaud xavier.milhaud.research@gmail.com

Examples

sim.X <- twoComp_mixt(n = 20, weight = 0.5,
                      comp.dist = list("norm", "norm"),
                      comp.param = list(list("mean"=3, "sd"=0.5),
                                        list("mean"=0, "sd"=1)))
get_mixture_data(sim.X)


admix documentation built on Jan. 8, 2026, 5:07 p.m.