cosDiag: Compute cosinus of the angle between argument vector 'x' and...

View source: R/expression_funks.R

cosDiagR Documentation

Compute cosinus of the angle between argument vector x and the vector space diagonal.

Description

Compute cosinus of the angle between argument vector x and the vector space diagonal.

Usage

cosDiag(x, d.v = rep(1, length(x)))

Arguments

x

numeric representing a vector in n-dimensional space

d.v

numeric the diagonal vector in n-dimensional space. Default is rep(1, length(x)).

Value

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.


asishallab/GeneFamilies documentation built on May 22, 2023, 11:30 a.m.