DistanceMetric

public enum DistanceMetric : UInt32

ENTERPRISE EDITION ONLY

Distance metric type

  • Undocumented

    Declaration

    Swift

    case euclideanSquared = 1
  • Squared Euclidean distance (AKA Squared L2)

    Declaration

    Swift

    case cosine
  • Cosine distance

    Declaration

    Swift

    case euclidean
  • dot

    Euclidean distance (AKA L2)

    Declaration

    Swift

    case dot