DistanceFunction

Objective-C

NS_ENUM(int, DistanceFunction) {
    L0_25 = 0,
    L0_5 = 1,
    L1 = 2,
    L2 = 3,
    L2SQUARED = 4,
    L5 = 5,
    L_INFINITY = 6
}

Swift

enum DistanceFunction : Int32
  • Declaration

    Objective-C

    L0_25 = 0

    Swift

    case L0_25 = 0
  • Declaration

    Objective-C

    L0_5 = 1

    Swift

    case L0_5 = 1
  • L1

    Declaration

    Objective-C

    L1 = 2

    Swift

    case L1 = 2
  • L2

    Declaration

    Objective-C

    L2 = 3

    Swift

    case L2 = 3
  • Declaration

    Objective-C

    L2SQUARED = 4

    Swift

    case L2SQUARED = 4
  • L5

    Declaration

    Objective-C

    L5 = 5

    Swift

    case L5 = 5
  • Declaration

    Objective-C

    L_INFINITY = 6

    Swift

    case L_INFINITY = 6