View source: R/Bliss_Simulated_Annealing.R
Bliss_Simulated_Annealing | R Documentation |
A Simulated Annealing algorithm to compute the Bliss estimate.
Bliss_Simulated_Annealing(
beta_sample,
posterior_sample,
param,
verbose_cpp = FALSE
)
beta_sample |
a matrix. Each row is a coefficient function computed from the posterior sample. |
posterior_sample |
a list resulting from the |
param |
a list containing:
|
verbose_cpp |
Rcpp writes stuff if TRUE (optional). |
a list containing:
a numerical vector, corresponding to the Bliss estimate of the coefficient function.
a numerical vector, which is the posterior expectation of the coefficient function for each time points.
a matrix, the trace of the algorithm.
data(data1)
data(param1)
data(res_bliss1)
param1$Q <- length(data1$x)
param1$grids <- data1$grids
param1$p <- sapply(data1$grids,length)
posterior_sample <- res_bliss1$posterior_sample
beta_sample <- compute_beta_sample(posterior_sample,param1)
res_sann <- Bliss_Simulated_Annealing(beta_sample,posterior_sample,param1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.