tof_cosine_dist: A function for finding the cosine distance between each of...

View source: R/developmental_classifier_helpers.R

tof_cosine_distR Documentation

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

Description

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

keyes-timothy/tidytof documentation built on May 7, 2024, 12:33 p.m.