object IndexedBacktrace
- Alphabetic
- By Inheritance
- IndexedBacktrace
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
Value Members
- def allMatches(indices1: Vector[Int], indices2: Vector[Int], permitted: (Int) => (Int) => Boolean): Vector[IndexMatch]
all matches of indices satisfying a condition, typically having a good enough distance bount
all matches of indices satisfying a condition, typically having a good enough distance bount
- indices1
first collection of indices
- indices2
second collection of indices
- permitted
condition for matching
- returns
vector of index matches
- def bestBoundMap(v: Vector[((Int, Int), Double)]): DistBoundMap
map of upper bounds, best from the data
map of upper bounds, best from the data
- v
vector of upper bounds
- returns
map of best upper bounds
- def distancesAreImproved(newDist: DistBoundMap, oldDist: DistBoundMap, resolution: Double): Boolean
checks whether a new distance is significantly better than an old one
checks whether a new distance is significantly better than an old one
- newDist
a possibly improved distance bound
- oldDist
the original distance
- resolution
additive scale for comparison
- returns
boolean giving whether improvement is significant
- final def stableDistance(baseDistance: DistBoundMap, refine: (DistBoundMap) => DistBoundMap, resolution: Double): DistBoundMap
refine distance till there is no significant improvement
refine distance till there is no significant improvement
- baseDistance
initial distance
- refine
map giving way to refine
- resolution
additive scale for comparison
- returns
refined upper bound on distances
- Annotations
- @tailrec()
- def symmetrizedBoundMap(v: Vector[((Int, Int), Double)]): DistBoundMap
upper bounds refined by using symmetry
upper bounds refined by using symmetry
- v
vector of upper bounds
- returns
symmetric map of upper bounds
- def triangleInequalityBounds(m: DistBoundMap): DistBoundMap
upper bounds refined using the triangle
upper bounds refined using the triangle
- m
given upper bounds
- returns
map of deduced upper bounds
- def triangleStableDistance(baseDistance: DistBoundMap, maxDistance: Double, resolution: Double): DistBoundMap
refine distances using the triangle inequality with pruning
refine distances using the triangle inequality with pruning
- baseDistance
initial distance bounds
- maxDistance
maximum distance bound - larger bounds than these are ignored
- resolution
additive scale for comparison
- returns
refined upper bound map