Skip to main content

kde_evaluate

Function kde_evaluate 

Source
pub fn kde_evaluate(data: &[f64], bandwidth: f64, x: f64) -> Option<f64>
Expand description

Evaluates the kernel density estimate at a single point.

Useful for point-wise evaluation without generating a full grid.

ยงReturns

None if data is empty, contains non-finite values, or bandwidth is invalid.