Learn R Programming

fdars (version 0.3.3)

Ker.cos: Cosine Kernel

Description

Cosine Kernel

Usage

Ker.cos(u)

Value

Kernel values at u (0 outside [-1, 1]).

Arguments

u

Numeric vector of evaluation points.

Examples

Run this code
u <- seq(-1.5, 1.5, length.out = 100)
plot(u, Ker.cos(u), type = "l", main = "Cosine Kernel")

Run the code above in your browser using DataLab