powered by
Function lincos linearizes the cosine function over the interval [0,2pi]. The function returns -2/pi*x + 1 over [0,pi] and 2/pi*x - 3 over [pi,2pi]
lincos
lincos(x)
a real number in [-1,1].
angle in radians
Jan Graffelman ([email protected])
Graffelman, J. (2012) Linear-angle correlation plots: new graphs for revealing correlation structure. Journal of Computational and Graphical Statistics. 22(1): 92-106.
cos
angle <- pi y <- lincos(angle) print(y)
Run the code above in your browser using DataLab