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

@@ -27,6 +27,7 @@ function startLinkSimulation() {
simulation
.alphaDecay(1 - Math.pow(0.001, 1 / ITERATIONS))
//.velocityDecay(0.8)
.force(forceName)
// The distance function that will be used to calculate distances
// between nodes.

View File

@@ -20,7 +20,7 @@ function startNeighbourSamplingSimulation() {
.distance(function (s, t) {
return distanceFunction(s, t, props, norm);
})
.stableVelocity(1.2)
.stableVelocity(0.004)
.stableVeloHandler( function(){simulation.stop(); ended();} )
);
// Restart the simulation.