[][src]Module acap::cos

Structs

Angular

Equips any coordinate space with the angular distance metric.

AngularDistance

An angular distance.

Cosine

Equips any coordinate space with the cosine distance function.

InvalidAngleError

Error type for failed conversions from angles outside of $[0, \pi]$ to AngularDistance.

PrenormAngular

Equips any coordinate space with the angular distance metric for pre-normalized (unit magnitude) points.

PrenormCosine

Equips any coordinate space with the cosine distance function for pre-normalized (unit magnitude) points.

Functions

angular_distance

Compute the angular distance between two points.

cosine_distance

Compute the cosine distance between two points.

cosine_similarity

Compute the cosine similarity between two points.

prenorm_angular_distance

Compute the angular distance between two points.

prenorm_cosine_distance

Compute the cosine distance between two pre-normalized (unit magnitude) points.

prenorm_cosine_similarity

Compute the cosine similarity between two pre-normalized (unit magnitude) points.