DistanceFunction Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. cosmos. models. DistanceFunction
- com.
- com.
public final class DistanceFunction
extends ExpandableStringEnum<DistanceFunction>
The distance function to use for distance calculation in between vectors.
Field Summary
Modifier and Type | Field and Description |
---|---|
static final
Distance |
COSINE
Static value cosine for Distance |
static final
Distance |
DOTPRODUCT
Static value dotproduct for Distance |
static final
Distance |
EUCLIDEAN
Static value euclidean for Distance |
Constructor Summary
Constructor | Description |
---|---|
DistanceFunction() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Distance |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Distance |
fromString(String name)
Creates or finds a Distance |
static
Collection<Distance |
values()
Gets known Distance |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
COSINE
public static final DistanceFunction COSINE
Static value cosine for DistanceFunction.
DOTPRODUCT
public static final DistanceFunction DOTPRODUCT
Static value dotproduct for DistanceFunction.
EUCLIDEAN
public static final DistanceFunction EUCLIDEAN
Static value euclidean for DistanceFunction.
Constructor Details
DistanceFunction
@Deprecated
public DistanceFunction()
Deprecated
Creates a new instance of DistanceFunction value.
Method Details
fromString
public static DistanceFunction fromString(String name)
Creates or finds a DistanceFunction from its string representation.
Parameters:
Returns:
values
public static Collection
Gets known DistanceFunction values.
Returns:
Applies to
Azure SDK for Java