Compute different kernels

kernel(u, type = 1)

Arguments

u

Vector of numeric, points to estimate the kernel.

type

Integer, used kernel. If 1, uniform kernel, If 2, Epanechnikov kernel. If 3, biweight kernel.

Value

Vector of numeric