bounds_phi_function_mixG: Obtain bounds for phi function

Description Usage Arguments Value Examples

Description

Finds the lower and upper bounds of the phi function between an interval

Usage

1
2
bounds_phi_function_mixG(weights, means, sds, beta,
  lower = min(interval), upper = max(interval))

Arguments

weights

vector: weights of mixture Gaussian

means

vector: means of mixture Gassuan

sds

vector: st.devs of mixture Gaussian

beta

real value between 0 and 1

lower

lower end of interval

upper

upper end of interval

Value

vector of lower and upper bound of phi-function between [lower, upper]

Examples

1
2
3
4
curve(phi_function_mixG(x, weights = c(0.4, 0.6), means = c(-3, 9), sds = c(1,1), 1), from = -15, to = 20)
abline(v=c(-10, -2))
bounds <- bounds_phi_function_mixG(weights = c(0.4, 0.6), means = c(-3, 9), sds = c(1,1), beta = 1, lower = -10, upper = -2)
abline(h=c(bounds$fun_ubound, bounds$fun_lbound))

rchan26/mixGaussTempering documentation built on June 14, 2019, 3:26 p.m.