Skip to main content

local_linear

Function local_linear 

Source
pub fn local_linear(
    x: &[f64],
    y: &[f64],
    x_new: &[f64],
    bandwidth: f64,
    kernel: &str,
) -> Vec<f64>
Expand description

Local linear regression smoother.

§Arguments

  • x - Predictor values
  • y - Response values
  • x_new - Points at which to evaluate the smoother
  • bandwidth - Kernel bandwidth
  • kernel - Kernel type

§Returns

Smoothed values at x_new