Skip to contents

A function for finding the cosine distance between each of the rows of a numeric matrix and a numeric vector.

Usage

tof_cosine_dist(matrix, vector)

Arguments

matrix

A numeric matrix.

vector

A numeric vector.

Value

A numeric vector of distances of length `nrow(matrix)` in which the ith entry represents the cosine distance between the ith row of `matrix` and `vector`.

Examples

NULL
#> NULL