View source: R/univariate_Gaussian_generalised_BF.R
rho_j_uniGaussian | R Documentation |
rho_j Importance Sampling weighting for univariate Gaussian distributions
rho_j_uniGaussian( particle_set, m, time_mesh, means, sds, betas, precondition_values, resampling_method = "multi", ESS_threshold = 0.5, sub_posterior_means = NULL, adaptive_mesh = FALSE, adaptive_mesh_parameters = NULL, diffusion_estimator = "Poisson", beta_NB = 10, gamma_NB_n_points = 2, seed = NULL, n_cores = parallel::detectCores() )
particle_set |
particles set prior to Q importance sampling step |
m |
number of sub-posteriors to combine |
time_mesh |
time mesh used in Bayesian Fusion |
means |
vector of length m, where means[c] is the mean for c-th sub-posterior |
sds |
vector of length m, where sds[c] is the standard deviation for c-th sub-posterior |
betas |
vector of length c, where betas[c] is the inverse temperature value for c-th posterior |
precondition_values |
vector of length m, where precondition_values[c] is the precondition value for sub-posterior c |
resampling_method |
method to be used in resampling, default is multinomial resampling ('multi'). Other choices are stratified resampling ('strat'), systematic resampling ('system'), residual resampling ('resid') |
ESS_threshold |
number between 0 and 1 defining the proportion of the number of samples that ESS needs to be lower than for resampling (i.e. resampling is carried out only when ESS < N*ESS_threshold) |
sub_posterior_means |
vector of length m, where sub_posterior_means[c] is the sub-posterior mean of sub-posterior c |
adaptive_mesh |
logical value to indicate if an adaptive mesh is used (default is FALSE) |
adaptive_mesh_parameters |
list of parameters used for adaptive mesh |
diffusion_estimator |
choice of unbiased estimator for the Exact Algorithm between "Poisson" (default) for Poisson estimator and "NB" for Negative Binomial estimator |
beta_NB |
beta parameter for Negative Binomial estimator (default 10) |
gamma_NB_n_points |
number of points used in the trapezoidal estimation of the integral found in the mean of the negative binomial estimator (default is 2) |
seed |
seed number - default is NULL, meaning there is no seed |
n_cores |
number of cores to use |
A list with components:
updated particle set after the iterative rho_j steps
proposal samples for the last time step
elapsed time of each step of the algorithm
effective sample size of the particles after each step
conditional effective sample size of the particles after each step
boolean value to indicate if particles were resampled after each time step
approximation of the average variation of the trajectories at each time step
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.