pub fn gaussian_kde(
data: &[f64],
bandwidth: f64,
eval_points: &[f64],
) -> Vec<f64>Expand description
Evaluates a Gaussian kernel density estimate at a set of points.
For each point in eval_points, the density is estimated by summing
Gaussian kernels centered on each data value, scaled by bandwidth.
§Arguments
data- The source data values.bandwidth- The smoothing bandwidth (standard deviation of each kernel).eval_points- The x-values at which to evaluate the density.
§Returns
A vector of density values, one per eval point.