เปลี่ยนค่าเริ่มต้นสำหรับ neighbour
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user