gausscov (version 1.1.2)

fgentrig: Generation of sine and cosine functions

Description

Generates sin(pi*j*(1:n)/n) (odd) and cos(pi*j*(1:n)/n) (even) for j=1,...,m for a given sample size n.

Usage

fgentrig(n,m)

Value

x The functions sin(pi*j*(1:n)/n) (odd) and cos(pi*j*(1:n)/n) (even) for j=1,...,m.

Arguments

n

Sample size

m

Maximum order of sine and cosine functions

Examples

Run this code
trig<-fgentrig(36,36)

Run the code above in your browser using DataLab