perpVecToDiagonal: Drops a perpendicular from vector 'x' to the vector space's...

View source: R/expression_funks.R

perpVecToDiagonalR Documentation

Drops a perpendicular from vector x to the vector space's diagonal. The perpendicular points towards x.

Description

Drops a perpendicular from vector x to the vector space's diagonal. The perpendicular points towards x.

Usage

perpVecToDiagonal(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

A vector in the same space of x, the perpendicular.


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