เปลี่ยนค่าเริ่มต้นสำหรับ neighbour
This commit is contained in:
@@ -147,14 +147,14 @@
|
|||||||
<br/>
|
<br/>
|
||||||
<label title="NeighbourSize">
|
<label title="NeighbourSize">
|
||||||
Subset: Neighbour Set
|
Subset: Neighbour Set
|
||||||
<output id="hlneighbourSizeSliderOutput">6</output><br/>
|
<output id="hlneighbourSizeSliderOutput">10</output><br/>
|
||||||
<input type="range" min="1" max="100" value="6" step="1" oninput="d3.select('#hlneighbourSizeSliderOutput').text(value); NEIGHBOUR_SIZE=value;">
|
<input type="range" min="1" max="100" value="10" step="1" oninput="d3.select('#hlneighbourSizeSliderOutput').text(value); NEIGHBOUR_SIZE=value;">
|
||||||
</label>
|
</label>
|
||||||
<br/>
|
<br/>
|
||||||
<label title="SampleSize">
|
<label title="SampleSize">
|
||||||
Subset: Sample Set
|
Subset: Sample Set
|
||||||
<output id="hlsampleSizeSliderOutput">3</output><br/>
|
<output id="hlsampleSizeSliderOutput">10</output><br/>
|
||||||
<input type="range" min="1" max="100" value="3" step="1" oninput="d3.select('#hlsampleSizeSliderOutput').text(value); SAMPLE_SIZE=value;">
|
<input type="range" min="1" max="100" value="10" step="1" oninput="d3.select('#hlsampleSizeSliderOutput').text(value); SAMPLE_SIZE=value;">
|
||||||
</label>
|
</label>
|
||||||
<br/>
|
<br/>
|
||||||
<label title="InterpEndingIts">
|
<label title="InterpEndingIts">
|
||||||
@@ -171,14 +171,14 @@
|
|||||||
<br/>
|
<br/>
|
||||||
<label title="Full NeighbourSize">
|
<label title="Full NeighbourSize">
|
||||||
Full: Neighbour Set
|
Full: Neighbour Set
|
||||||
<output id="hlFullneighbourSizeSliderOutput">6</output><br/>
|
<output id="hlFullneighbourSizeSliderOutput">10</output><br/>
|
||||||
<input type="range" min="1" max="100" value="6" step="1" oninput="d3.select('#hlFullneighbourSizeSliderOutput').text(value); FULL_NEIGHBOUR_SIZE=value;">
|
<input type="range" min="1" max="100" value="10" step="1" oninput="d3.select('#hlFullneighbourSizeSliderOutput').text(value); FULL_NEIGHBOUR_SIZE=value;">
|
||||||
</label>
|
</label>
|
||||||
<br/>
|
<br/>
|
||||||
<label title="Full SampleSize">
|
<label title="Full SampleSize">
|
||||||
Full: Sample Set
|
Full: Sample Set
|
||||||
<output id="hlFullsampleSizeSliderOutput">3</output><br/>
|
<output id="hlFullsampleSizeSliderOutput">10</output><br/>
|
||||||
<input type="range" min="1" max="100" value="3" step="1" oninput="d3.select('#hlFullsampleSizeSliderOutput').text(value); FULL_SAMPLE_SIZE=value;">
|
<input type="range" min="1" max="100" value="10" step="1" oninput="d3.select('#hlFullsampleSizeSliderOutput').text(value); FULL_SAMPLE_SIZE=value;">
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -187,14 +187,14 @@
|
|||||||
<div id="NSParameters" class="parameters" style="display:none">
|
<div id="NSParameters" class="parameters" style="display:none">
|
||||||
<label title="NeighbourSize">
|
<label title="NeighbourSize">
|
||||||
Neighbour Set
|
Neighbour Set
|
||||||
<output id="neighbourSizeSliderOutput">6</output><br/>
|
<output id="neighbourSizeSliderOutput">10</output><br/>
|
||||||
<input type="range" min="1" max="100" value="6" step="1" oninput="d3.select('#neighbourSizeSliderOutput').text(value); NEIGHBOUR_SIZE=value;">
|
<input type="range" min="1" max="100" value="10" step="1" oninput="d3.select('#neighbourSizeSliderOutput').text(value); NEIGHBOUR_SIZE=value;">
|
||||||
</label>
|
</label>
|
||||||
<br/>
|
<br/>
|
||||||
<label title="SampleSize">
|
<label title="SampleSize">
|
||||||
Sample Set
|
Sample Set
|
||||||
<output id="sampleSizeSliderOutput">3</output><br/>
|
<output id="sampleSizeSliderOutput">10</output><br/>
|
||||||
<input type="range" min="1" max="100" value="3" step="1" oninput="d3.select('#sampleSizeSliderOutput').text(value); SAMPLE_SIZE=value;">
|
<input type="range" min="1" max="100" value="10" step="1" oninput="d3.select('#sampleSizeSliderOutput').text(value); SAMPLE_SIZE=value;">
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<input class="noParameters" type="radio" name="algorithm" onclick="d3.select('#startSimulation').on('click', startLinkSimulation); tweakedVerOfLink=false;">Link force in D3<br>
|
<input class="noParameters" type="radio" name="algorithm" onclick="d3.select('#startSimulation').on('click', startLinkSimulation); tweakedVerOfLink=false;">Link force in D3<br>
|
||||||
|
|||||||
@@ -50,16 +50,16 @@ var nodes, // as in Data points
|
|||||||
var MULTIPLIER = 50,
|
var MULTIPLIER = 50,
|
||||||
PERPLEXITY = 30,
|
PERPLEXITY = 30,
|
||||||
LEARNING_RATE = 10,
|
LEARNING_RATE = 10,
|
||||||
NEIGHBOUR_SIZE = 6,
|
NEIGHBOUR_SIZE = 10,
|
||||||
SAMPLE_SIZE = 3,
|
SAMPLE_SIZE = 10,
|
||||||
PIVOTS = false,
|
PIVOTS = false,
|
||||||
NUM_PIVOTS = 3,
|
NUM_PIVOTS = 3,
|
||||||
ITERATIONS = 300,
|
ITERATIONS = 300,
|
||||||
FULL_ITERATIONS = 20,
|
FULL_ITERATIONS = 20,
|
||||||
NODE_SIZE = 10,
|
NODE_SIZE = 10,
|
||||||
COLOR_ATTRIBUTE = "",
|
COLOR_ATTRIBUTE = "",
|
||||||
FULL_NEIGHBOUR_SIZE = 6,
|
FULL_NEIGHBOUR_SIZE = 10,
|
||||||
FULL_SAMPLE_SIZE = 3,
|
FULL_SAMPLE_SIZE = 10,
|
||||||
INTERP_ENDING_ITS = 20;
|
INTERP_ENDING_ITS = 20;
|
||||||
|
|
||||||
// Create a color scheme for a range of numbers.
|
// Create a color scheme for a range of numbers.
|
||||||
|
|||||||
@@ -13,12 +13,12 @@ function startHybridSimulation() {
|
|||||||
return distanceFunction(s, t, props, norm);
|
return distanceFunction(s, t, props, norm);
|
||||||
}
|
}
|
||||||
|
|
||||||
let forceSample = d3.forceNeighbourSamplingDistance()
|
let forceSample = d3.forceNeighbourSampling()
|
||||||
.neighbourSize(NEIGHBOUR_SIZE)
|
.neighbourSize(NEIGHBOUR_SIZE)
|
||||||
.sampleSize(SAMPLE_SIZE)
|
.sampleSize(SAMPLE_SIZE)
|
||||||
.distance(distance)
|
.distance(distance)
|
||||||
|
|
||||||
let forceFull = d3.forceNeighbourSamplingDistance()
|
let forceFull = d3.forceNeighbourSampling()
|
||||||
.neighbourSize(FULL_NEIGHBOUR_SIZE)
|
.neighbourSize(FULL_NEIGHBOUR_SIZE)
|
||||||
.sampleSize(FULL_SAMPLE_SIZE)
|
.sampleSize(FULL_SAMPLE_SIZE)
|
||||||
.distance(distance)
|
.distance(distance)
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ export default function () {
|
|||||||
var neighbours = [],
|
var neighbours = [],
|
||||||
distance = constant(300),
|
distance = constant(300),
|
||||||
nodes,
|
nodes,
|
||||||
neighbourSize = 6,
|
neighbourSize = 10,
|
||||||
sampleSize = 3,
|
sampleSize = 10,
|
||||||
stableVelocity = 0,
|
stableVelocity = 0,
|
||||||
stableVeloHandler = null,
|
stableVeloHandler = null,
|
||||||
dataSizeFactor;
|
dataSizeFactor;
|
||||||
|
|||||||
Reference in New Issue
Block a user