trait LongImpl extends Impl[Long]
- Alphabetic
- By Inheritance
- LongImpl
- Impl
- Ops
- DistanceMeasure
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
distance(a: PointLike, b: PointLike): 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: PointLike, b: IntSpace.ThreeDim.HyperCube): 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 whetherais contained inbor not.- Definition Classes
- DistanceMeasure
-
abstract
def
minDistance(a: PointLike, b: IntSpace.ThreeDim.HyperCube): 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, ifalies outside ofb, or zero, ifalies 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
0Lis 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, ifeuclideanSqis used, and points within a radius of 4 should be approximated, a threshold of4 * 4 = 16must 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
bwhich lie within the givenIntSquare.Applies a filter to this measure by constraining distances to objects
bwhich lie within the givenIntSquare. That is, if for exampledistance( a, b )is called, first it is checked ifbis withinhyperCube. If so, the underlying measure is calculated, otherwise,Long.MaxValueis returned. This behaviour extends to theminDistanceandmaxDistancemethods. -
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
compareMeasure(a: Long, b: Long): Int
- Definition Classes
- LongImpl → DistanceMeasure
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def exceptOrthant(idx: Int): ML
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- 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(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- final def zeroValue: Long