Compute Cosine Distances

A function for computing (euclidean) distances with respect to a certain specified point.

1 |

`x` |
A numeric matrix (containing coordinates). |

`wrt` |
A specification of the point with respect to which to compute all distances: can be either a vector or
the character label of one of the row levels in |

A matrix (containing distances between the rows of `x`

and `wrt`

).

1 2 3 4 | ```
SndT_Fra <- read.table(system.file("extdata", "SndT_Fra.txt", package = "svs"),
header = TRUE, sep = "\t", quote = "\"", encoding = "UTF-8")
sca.SndT_Fra <- fast_sca(SndT_Fra)
dist_wrt(sca.SndT_Fra$pos1, wrt = "beginnen")
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ 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.