Evaluate the Bartlett kernel function: Bartlett(x)=1-|x| if |x|\leq 1 and Bartlett(x)=1-|x| otherwise.
Bartlett(x)=1-|x|
|x|\leq 1
Bartlett(x)
x
A single numeric.
A single numeric between 0 and 1.
Bartlett(0.5)