sealed trait Impl[M] extends Ops[M, IntPoint3DLike, IntCube]
- Alphabetic
- By Inheritance
- Impl
- Ops
- DistanceMeasure
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def approximate(thresh: M): Ops[M, IntPoint3DLike, IntCube]
Composes this distance so that a threshold is applied to point-point distances.
Composes this distance so that a threshold is applied to point-point distances. If the point-point distance of the underlying measure returns a value less than or equal the given threshold, then instead the value
0L
is returned. This allows for quicker searches so that a nearest neighbour becomes an approximate nn within the given threshold (the first arbitrary point encountered with a distance smaller than the threshold will be returned).Note that the threshold is directly compared to the result of
distance
, thus if the underlying measure uses a skewed distance, this must be taken into account. For example, ifeuclideanSq
is used, and points within a radius of 4 should be approximated, a threshold of4 * 4 = 16
must be chosen!- Definition Classes
- Ops
- abstract def clip(hyperCube: IntCube): Ops[M, IntPoint3DLike, IntCube]
Applies a filter to this measure by constraining distances to objects
b
which lie within the givenIntSquare
.Applies a filter to this measure by constraining distances to objects
b
which lie within the givenIntSquare
. That is, if for exampledistance( a, b )
is called, first it is checked ifb
is withinhyperCube
. If so, the underlying measure is calculated, otherwise,Long.MaxValue
is returned. This behaviour extends to theminDistance
andmaxDistance
methods.- Definition Classes
- Ops
- abstract def compareMeasure(a: M, b: M): Int
- Definition Classes
- DistanceMeasure
- abstract def distance(a: IntPoint3DLike, b: IntPoint3DLike): M
Calculates the distance between two points.
Calculates the distance between two points.
- a
the input query point
- b
a point in the octree
- Definition Classes
- DistanceMeasure
- abstract def exceptOrthant(idx: Int): Ops[M, IntPoint3DLike, IntCube]
- Definition Classes
- Ops
- abstract def isMeasureGreater(a: M, b: M): Boolean
- Definition Classes
- DistanceMeasure
- abstract def isMeasureZero(m: M): Boolean
- Definition Classes
- DistanceMeasure
- abstract def maxDistance(a: IntPoint3DLike, b: IntCube): M
Calculates the maximum distance between a point and any possible point of a given hyper-cube.
Calculates the maximum distance between a point and any possible point of a given hyper-cube. In the euclidean case, this is the distance to the hyper-cube
b
's corner that is furthest to the pointa
, no matter whethera
is contained inb
or not.- Definition Classes
- DistanceMeasure
- abstract def maxValue: M
A value which will never be exceeded by the measure.
A value which will never be exceeded by the measure.
- Definition Classes
- DistanceMeasure
- abstract def minDistance(a: IntPoint3DLike, b: IntCube): M
Calculates the minimum distance between a point and any possible point of a given hyper-cube.
Calculates the minimum distance between a point and any possible point of a given hyper-cube. In the euclidean case, this is the distance to the hyper-cube
b
's corner that is closest to the pointa
, ifa
lies outside ofb
, or zero, ifa
lies withinb
.- Definition Classes
- DistanceMeasure
- abstract def newArray(size: Int): Array[M]
- Definition Classes
- DistanceMeasure
- abstract def orthant(idx: Int): Ops[M, IntPoint3DLike, IntCube]
- Definition Classes
- Ops
- abstract def zeroValue: M
- Attributes
- protected
Concrete 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated