Remove multiplier from neighbour sampling

This commit is contained in:
Pitchaya Boonsarngsuk committed 2018-01-15 11:21:47 +00:00
1 parent 3a93c843c9
commit c11c902e69
3 files changed
+7 -16

No files matched your search

@@ -264,12 +264,11 @@ function startNeighbourSamplingSimulation() {
.neighbourSize(NEIGHBOUR_SIZE)
.sampleSize(SAMPLE_SIZE)
// .freeness(0.5)
.multiplier(MULTIPLIER)
.distanceRange(SELECTED_DISTANCE)
// The distance function that will be used to calculate distances
// between nodes.
.distance(function (s, t) {
return distanceFunction(s, t, props, norm);
return distanceFunction(s, t, props, norm) * MULTIPLIER;
}));
// Restart the simulation.
console.log(simulation.force(forceName).neighbourSize(), simulation.force(forceName).sampleSize());