เปลี่ยนค่าเริ่มต้นสำหรับ neighbour

This commit is contained in:
Pitchaya Boonsarngsuk
2018-02-02 10:16:27 +00:00
parent e330b029d7
commit 0fe075d4ba
4 changed files with 20 additions and 20 deletions

View File

@@ -50,16 +50,16 @@ var nodes, // as in Data points
var MULTIPLIER = 50,
PERPLEXITY = 30,
LEARNING_RATE = 10,
NEIGHBOUR_SIZE = 6,
SAMPLE_SIZE = 3,
NEIGHBOUR_SIZE = 10,
SAMPLE_SIZE = 10,
PIVOTS = false,
NUM_PIVOTS = 3,
ITERATIONS = 300,
FULL_ITERATIONS = 20,
NODE_SIZE = 10,
COLOR_ATTRIBUTE = "",
FULL_NEIGHBOUR_SIZE = 6,
FULL_SAMPLE_SIZE = 3,
FULL_NEIGHBOUR_SIZE = 10,
FULL_SAMPLE_SIZE = 10,
INTERP_ENDING_ITS = 20;
// Create a color scheme for a range of numbers.

View File

@@ -13,12 +13,12 @@ function startHybridSimulation() {
return distanceFunction(s, t, props, norm);
}
let forceSample = d3.forceNeighbourSamplingDistance()
let forceSample = d3.forceNeighbourSampling()
.neighbourSize(NEIGHBOUR_SIZE)
.sampleSize(SAMPLE_SIZE)
.distance(distance)
let forceFull = d3.forceNeighbourSamplingDistance()
let forceFull = d3.forceNeighbourSampling()
.neighbourSize(FULL_NEIGHBOUR_SIZE)
.sampleSize(FULL_SAMPLE_SIZE)
.distance(distance)