Visible to Intel only — GUID: GUID-132B2D29-825E-4673-8CBF-65C7F04BEF37
Visible to Intel only — GUID: GUID-132B2D29-825E-4673-8CBF-65C7F04BEF37
Cosine distance
The Cosine distance is a measure of distance between two non-zero vectors of an inner product space.
Mathematical formulation
Refer to Developer Guide: Minkowski distance.
Programming Interface
All types and functions in this section are declared in the oneapi::dal::cosine_distance namespace.
Descriptor
template<typenameFloat=float,typenameMethod=method::by_default,typenameTask=task::by_default>classdescriptor
- Template Parameters
Constructors
descriptor()=default
Creates a new instance of the class with the default property values.
Method tags
structdense
usingby_default=dense
Alias tag-type for the dense method.
Task tags
structcompute
Tag-type that parameterizes entities that are used to compute distances.
usingby_default=compute
Alias tag-type for the compute task.