MetricSpace

object MetricSpace extends MetricSpace0
Companion
class
trait MetricSpace0
class Object
trait Matchable
class Any

Value members

Concrete methods

@inline
final
def apply[V, @specialized(Int, Long, Float, Double) R](implicit V: MetricSpace[V, R]): MetricSpace[V, R]
def closeTo[V, @specialized(Int, Long, Float, Double) R](x: V, y: V, tolerance: Double)(implicit R: IsReal[R], metric: MetricSpace[V, R]): Boolean

Returns true iff the distance between x and y is less than or equal to tolerance.

Returns true iff the distance between x and y is less than or equal to tolerance.

def distance[V, @specialized(Int, Long, Float, Double) R](v: V, w: V)(implicit metric: MetricSpace[V, R]): R

Implicits

Inherited implicits

implicit
def realMetricSpace[@specialized(Int, Long, Float, Double) R](implicit R0: IsReal[R], R1: Rng[R]): MetricSpace[R, R]
Inherited from
MetricSpace0