Change velocity-difference threshold calculation method and misc small non-functional changes (PROPER)

This commit is contained in:
Pitchaya Boonsarngsuk
2018-01-24 08:55:49 +00:00
parent df652ffec6
commit 6b53b3301d
7 changed files with 95 additions and 279 deletions

View File

@@ -7,8 +7,7 @@ export default function(sampleSet, remainderSet, distanceFn) {
let sampleSubset = takeSampleFrom(sampleSet, Math.sqrt(sampleSet.length)).sample;
for (let node of remainderSet) {
let nearestSample = undefined,
minDist = undefined,
let nearestSample, minDist,
sampleSubsetDistanceCache = [];
for (let sample of sampleSet) {