Packages

object Metric extends Serializable

A Metric[V] m is a function (V, V) => Double that satisfies the following properties:

1. m(v1, v2) >= 0 2. m(v1, v2) == 0 iff v1 == v2 3. m(v1, v2) == m(v2, v1) 4. m(v1, v3) <= m(v1, v2) + m(v2, v3)

If you implement this trait, make sure that you follow these rules.

Linear Supertypes
Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Metric
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def L1Iterable[V](implicit arg0: Monoid[V], arg1: Metric[V]): Metric[Iterable[V]]
  5. def L1Map[K, V](implicit arg0: Monoid[V], arg1: Metric[V]): Metric[Map[K, V]]
  6. def L2Iterable[V](implicit arg0: Monoid[V], arg1: Metric[V]): Metric[Iterable[V]]
  7. def L2Map[K, V](implicit arg0: Monoid[V], arg1: Metric[V]): Metric[Map[K, V]]
  8. def apply[V](v1: V, v2: V)(implicit arg0: Metric[V]): Double
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. implicit val boolMetric: Metric[Boolean]
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  12. implicit val doubleMetric: Metric[Double]
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  16. implicit val floatMetric: Metric[Float]
  17. def from[V](f: (V, V) => Double): Metric[V]
  18. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. implicit val intMetric: Metric[Int]
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. implicit def iterableMetric[V](implicit arg0: Monoid[V], arg1: Metric[V]): Metric[Iterable[V]]
  23. implicit val jBoolMetric: Metric[Boolean]
  24. implicit val jDoubleMetric: Metric[Double]
  25. implicit val jFloatMetric: Metric[Float]
  26. implicit val jIntMetric: Metric[Integer]
  27. implicit val jLongMetric: Metric[Long]
  28. implicit val jShortMetric: Metric[Short]
  29. implicit val longMetric: Metric[Long]
  30. implicit def mapMetric[K, V](implicit arg0: Monoid[V], arg1: Metric[V]): Metric[Map[K, V]]
  31. def minkowskiIterable[V](p: Double)(implicit arg0: Monoid[V], arg1: Metric[V]): Metric[Iterable[V]]
  32. def minkowskiMap[K, V](p: Double)(implicit arg0: Monoid[V], arg1: Metric[V]): Metric[Map[K, V]]
  33. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  34. def norm[V](v: V)(implicit arg0: Metric[V], arg1: Monoid[V]): Double
  35. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  36. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  37. implicit val shortMetric: Metric[Short]
  38. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  39. def toString(): String
    Definition Classes
    AnyRef → Any
  40. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  41. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  42. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped