weighted_kde {topolow}R Documentation

Weighted Kernel Density Estimation

Description

Performs weighted kernel density estimation for univariate data. Uses parallel processing for efficiency. Useful for analyzing parameter distributions with importance weights.

Usage

weighted_kde(x, weights, n = 512, from = min(x), to = max(x))

Arguments

x

Numeric vector of samples

weights

Numeric vector of weights

n

Integer number of evaluation points

from, to

Numeric range for evaluation points

Value

List containing:

x

Vector of evaluation points

y

Vector of density estimates


[Package topolow version 1.0.0 Index]