getCosine: Computes cosine value of the angle for two vectors.

Description Usage Arguments Value Author(s) Examples

Description

This function implements the Law of Cosines to compute the cosine value of two vectors on BAF-LRR plot.

Usage

1
getCosine(v1, v2)

Arguments

v1

numeric vector

v2

numeric vector

Value

numeric cosine value

Author(s)

Bo Li

Examples

1
2
3
4
## See what happens to vectors with 45 degree angle
v1=c(1,1)
v2=c(1,0)
getCosine(v1,v2)


Search within the CHAT package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.