Learn R Programming

GCCfactor (version 1.0.1)

Bartlett: Bartlett kernel function

Description

Evaluate the Bartlett kernel function: \(Bartlett(x)=1-|x|\) if \(|x|\leq 1\) and \(Bartlett(x)=1-|x|\) otherwise.

Usage

Bartlett(x)

Value

A single numeric between 0 and 1.

Arguments

x

A single numeric.

Examples

Run this code

Bartlett(0.5)

Run the code above in your browser using DataLab