Neighbour remove double check on stableVeloHandler exists

This commit is contained in:
Pitchaya Boonsarngsuk
2018-02-06 13:10:51 +00:00
parent b14b6616b2
commit 340be450b8

View File

@@ -63,7 +63,7 @@ export default function () {
velocityDiff /= n*(neighbourSize+sampleSize);
latestVelocityDiff = velocityDiff;
if(stableVeloHandler!==null && velocityDiff<stableVelocity){
if(velocityDiff<stableVelocity){
stableVeloHandler();
}
else console.log(velocityDiff);