Visible to Intel only — GUID: GUID-AAEE7CFB-29BC-491C-A3A2-DD98CF2CA104
Visible to Intel only — GUID: GUID-AAEE7CFB-29BC-491C-A3A2-DD98CF2CA104
Minkowski distance
The Minkowski distances are the set of distance metrics with different degree and are widely used for distance computation in different algorithms. The most commonly used distance metric, Euclidean distance, is also a Minkowski distance with .
Mathematical formulation
Refer to Developer Guide: Minkowski distance.
Programming Interface
All types and functions in this section are declared in the oneapi::dal::minkowski_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.
descriptor(doubledegree)
Creates a new instance of the class with the external property values.
Properties
doubledegree
The coefficient of the Minkowski distance. Default value: 2.0.
- Getter & Setter
-
double get_degree() const
auto & set_degree(double value)
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.