View source: R/expression_funks.R
cosDiag | R Documentation |
x
and the vector
space diagonal.Compute cosinus of the angle between argument vector x
and the vector
space diagonal.
cosDiag(x, d.v = rep(1, length(x)))
x |
numeric representing a vector in n-dimensional space |
d.v |
numeric the diagonal vector in n-dimensional space. Default is
|
Returns the cosinus of the angle between argument vector x
and the vector space diagonal. If any value in argument x
is infinite
or not a number or if x
is NULL
NaN
is returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.