ea_phi_mixG_DL: phi-function for a tempered mixture Gaussian

View source: R/RcppExports.R

ea_phi_mixG_DLR Documentation

phi-function for a tempered mixture Gaussian

Description

phi-function for the Exact Algorithm for a tempered mixture Gaussian

Usage

ea_phi_mixG_DL(x, n_comp, weights, means, sds, beta, precondition)

Arguments

x

real value

n_comp

integer number of components of mixture Gaussian

weights

vector: weights of mixture Gaussian

means

vector: means of mixture Gassuan

sds

vector: st.devs of mixture Gaussian

beta

real value

precondition

precondition value

Value

real value

Examples

weights <- c(0.4, 0.6)
means <- c(-3, 6)
sds <- c(1, 2)
beta <- 1/4
precondition <- 1
curve(dnorm_mix_tempered(x,
                         n_comp = 2,
                         weights = weights,
                         means = means,
                         sds = sds,
                         beta = beta),
      -20, 40,  n = 100000, ylim = c(-0.5, 2), ylab = 'y')
curve(ea_phi_mixG_DL(x,
                     n_comp = 2,
                     weights = weights,
                     means = means,
                     sds = sds,
                     beta = beta,
                     precondition = precondition),
      add = T, n = 100000, col = 'red')

rchan26/hierarchicalFusion documentation built on Sept. 11, 2022, 10:30 p.m.