VectorDistanceMeasure enum
Distance measure for vector similarity calculations.
ベクトル類似度計算の距離測定方法。
Values
- cosine → const VectorDistanceMeasure
-
Cosine similarity (range: -1 to 1, higher is more similar).
コサイン類似度(範囲: -1〜1、高いほど類似)。
- euclidean → const VectorDistanceMeasure
-
Euclidean distance (range: 0 to infinity, lower is more similar).
ユークリッド距離(範囲: 0〜無限大、低いほど類似)。
- dotProduct → const VectorDistanceMeasure
-
Dot product (range: -infinity to infinity, higher is more similar).
ドット積(範囲: -無限大〜無限大、高いほど類似)。
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
VectorDistanceMeasure> - A constant List of the values in this enum, in order of their declaration.