gen_two_gaussian_dist: Generate a distribution from a two Gaussian mixture

Description Usage Arguments Value Examples

Description

Generate a distribution from a two Gaussian mixture

Usage

1
2
gen_two_gaussian_dist(p1, mu1, s1, mu2, s2, start, stop, step,
  rn_seed = 42)

Arguments

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

start

- starting value of x (e.g. diameter)

stop

- ending value of x (e.g. diameter)

step

- step x (e.g. diameter)

rn_seed

- the random number seed (default 42)

Value

df - a data frame with x and frequency

Examples

1
2
library(particlesizeR)
data <- gen_two_gaussian_dist(0.5, 0.5, 1.0, 10.0, 3.0, 0, 20, 0.1)

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