gen_two_gaussian_mixture: Generate a sample from a two Gaussian mixture

Description Usage Arguments Value Examples

Description

Generate a sample from a two Gaussian mixture

Usage

1
gen_two_gaussian_mixture(n, p1, mu1, s1, mu2, s2, rn_seed = 42)

Arguments

n

- the number of samples to generate

p1

- the fractional probability of the first Gaussian (< 1.0)

mu1

- the mean of the first Gaussian

s1

- the standard deviation of the first Gaussian

mu2

- the mean of the second Gaussian

s2

- the standard deviation of the second Gaussian

rn_seed

- the random number seed (default 42)

Value

rand.samples - a vector of n samples

Examples

1
2
library(particlesizeR)
samples <- gen_two_gaussian_mixture(10000, 0.5, 0.5, 1.0, 10.0, 3.0)

jrminter/particlesizeR documentation built on June 5, 2019, 11:05 p.m.