trait LongImpl extends Impl[Long]
- Alphabetic
- By Inheritance
- LongImpl
- Impl
- Ops
- DistanceMeasure
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def distance(a: IntPoint3DLike, b: IntPoint3DLike): Long
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 maxDistance(a: IntPoint3DLike, b: IntCube): Long
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 minDistance(a: IntPoint3DLike, b: IntCube): Long
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
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 approximate(thresh: Long): ML
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! - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final def clip(quad: IntSpace.ThreeDim.HyperCube): ML
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. - def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def compareMeasure(a: Long, b: Long): Int
- Definition Classes
- LongImpl → DistanceMeasure
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def exceptOrthant(idx: Int): ML
- 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 isMeasureGreater(a: Long, b: Long): Boolean
- Definition Classes
- LongImpl → DistanceMeasure
- final def isMeasureZero(m: Long): Boolean
- Definition Classes
- LongImpl → DistanceMeasure
- final def maxValue: Long
A value which will never be exceeded by the measure.
A value which will never be exceeded by the measure.
- Definition Classes
- LongImpl → DistanceMeasure
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def newArray(size: Int): Array[Long]
- Definition Classes
- LongImpl → DistanceMeasure
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def orthant(idx: Int): ML
- 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])
- final def zeroValue: Long
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated