R version. $$f(x; H_1, H_2, m_1, m_2, s_1, s_2) = H_1 \exp \left( -\frac{1}{2} \left( \frac{x - m_1}{s_1} \right) ^ 2 \right) + H_2 \exp \left( -\frac{1}{2} \left( \frac{x - m_2}{s_2} \right) ^ 2 \right)$$

mixgaussian(x, H1, H2, m1, m2, s1, s2)

Arguments

x

Environmental variable

H1

Height of the first Gaussian

H2

Height of the second Gaussian

m1

Mode of the first Gaussian

m2

Mode of the second Gaussian

s1

Spread of the first Gaussian

s2

Spread of the second Gaussian

Value

Value at x, given the other parameters