Performs weighted kernel density estimation for univariate data. Uses parallel processing for efficiency. Useful for analyzing parameter distributions with importance weights.
weighted_kde(x, weights, n = 512, from = min(x), to = max(x))
List containing:
Vector of evaluation points
Vector of density estimates
Numeric vector of samples
Numeric vector of weights
Integer number of evaluation points
Numeric range for evaluation points