estimate_density: Estimate density

estimate_densityR Documentation

Estimate density

Description

Run kde for weighted density estimation of a x at n_points evenly spaced points between min and max.

Usage

estimate_density(x, min, max, n_points = 100, w = NULL, ...)

Arguments

x

numeric vector or matrix

min

numeric vector giving the lower bound of evaluation points for each variable in x

max

numeric vector giving the upper bound of evaluation points for each variable in x

n_points

number of evaluation points (estimates)

w

vector of weights. Default uses uniform weighting.

...

further arguments to pass to kde


coletl/blocs documentation built on Oct. 24, 2023, 6:26 p.m.