andrews: Compute Andrews' curves...

Description Usage Arguments Details Value Examples

Description

Compute Andrews' curves

Usage

1

Arguments

x

input a new parameter

Details

This function takes a numeric vector of input, and returns a function which allows you to compute the value of the Andrew's curve at every point along its path from -pi to pi.

Value

a function with single argument, theta

Examples

1
2
3
4
5
6
7
8
a <- andrews(1:2)
a(0)
a(-pi)
grid <- seq(-pi, pi, length = 50)
a(grid)

plot(grid, andrews(1:2)(grid), type = "l")
plot(grid, andrews(runif(5))(grid), type = "l")

tourr documentation built on May 2, 2019, 5:28 p.m.

Related to andrews in tourr...