Remove multiplier from neighbour sampling

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

View File

@@ -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());