Skip to contents

Creates a model based on a mixture of Gaussians for multi-modal data.

Usage

bs_model_gaussian_mixture(means, sds, weights = NULL, name = NULL)

Arguments

means

Vector of means for each component

sds

Vector of standard deviations for each component

weights

Vector of mixture weights (must sum to 1)

name

Optional name for the model

Value

A bs_model_gaussian_mixture object

Examples

# Two-component mixture
model <- bs_model_gaussian_mixture(
  means = c(50, 150),
  sds = c(10, 20),
  weights = c(0.7, 0.3)
)