object Metric extends Serializable
A Metric[V] m is a function (V, V) => Double that satisfies the following properties:
- 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
Ordering
- Alphabetic
- By Inheritance
Inherited
- Metric
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def L1Iterable[V](implicit arg0: Monoid[V], arg1: Metric[V]): Metric[Iterable[V]]
- def L1Map[K, V](implicit arg0: Monoid[V], arg1: Metric[V]): Metric[Map[K, V]]
- def L2Iterable[V](implicit arg0: Monoid[V], arg1: Metric[V]): Metric[Iterable[V]]
- def L2Map[K, V](implicit arg0: Monoid[V], arg1: Metric[V]): Metric[Map[K, V]]
- def apply[V](v1: V, v2: V)(implicit arg0: Metric[V]): Double
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- implicit val boolMetric: Metric[Boolean]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- implicit val doubleMetric: Metric[Double]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- implicit val floatMetric: Metric[Float]
- def from[V](f: (V, V) => Double): Metric[V]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- implicit val intMetric: Metric[Int]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- implicit def iterableMetric[V](implicit arg0: Monoid[V], arg1: Metric[V]): Metric[Iterable[V]]
- implicit val jBoolMetric: Metric[Boolean]
- implicit val jDoubleMetric: Metric[Double]
- implicit val jFloatMetric: Metric[Float]
- implicit val jIntMetric: Metric[Integer]
- implicit val jLongMetric: Metric[Long]
- implicit val jShortMetric: Metric[Short]
- implicit val longMetric: Metric[Long]
- implicit def mapMetric[K, V](implicit arg0: Monoid[V], arg1: Metric[V]): Metric[Map[K, V]]
- def minkowskiIterable[V](p: Double)(implicit arg0: Monoid[V], arg1: Metric[V]): Metric[Iterable[V]]
- def minkowskiMap[K, V](p: Double)(implicit arg0: Monoid[V], arg1: Metric[V]): Metric[Map[K, V]]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def norm[V](v: V)(implicit arg0: Metric[V], arg1: Monoid[V]): Double
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- implicit val shortMetric: Metric[Short]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()