Skip to contents

Find the cosine similarity between two vectors

Usage

cosine_similarity(x, y)

Arguments

x

a numeric vector

y

a numeric vector

Value

a scalar value representing the cosine similarity between x and y