Change logging

This commit is contained in:
Pitchaya Boonsarngsuk
2018-02-13 18:42:29 +00:00
parent adf8126d86
commit 6182a5fc26
2 changed files with 5 additions and 4 deletions

View File

@@ -227,9 +227,6 @@ function ended() {
return d.y*MULTIPLIER; return d.y*MULTIPLIER;
}); });
//} //}
console.log("Post stress", d3.calculateStress(nodes, function (n, m) {
return distanceFunction(n, m, props, norm);
}));
if (p1 !== 0) { if (p1 !== 0) {
// Performance time measurement // Performance time measurement
@@ -243,6 +240,9 @@ function ended() {
p1 = 0; p1 = 0;
p2 = 0; p2 = 0;
} }
console.log("Post stress", d3.calculateStress(nodes, function (n, m) {
return distanceFunction(n, m, props, norm);
}));
} }
function brushEnded() { function brushEnded() {

View File

@@ -16,12 +16,13 @@ function startHybridSimulation() {
let forceSample = d3.forceNeighbourSampling() let forceSample = d3.forceNeighbourSampling()
.neighbourSize(NEIGHBOUR_SIZE) .neighbourSize(NEIGHBOUR_SIZE)
.sampleSize(SAMPLE_SIZE) .sampleSize(SAMPLE_SIZE)
.stableVelocity(0) .stableVelocity(0.43)
.distance(distance) .distance(distance)
let forceFull = d3.forceNeighbourSampling() let forceFull = d3.forceNeighbourSampling()
.neighbourSize(FULL_NEIGHBOUR_SIZE) .neighbourSize(FULL_NEIGHBOUR_SIZE)
.sampleSize(FULL_SAMPLE_SIZE) .sampleSize(FULL_SAMPLE_SIZE)
.stableVelocity(0.6)
.distance(distance) .distance(distance)
let hybridSimulation = d3.hybridSimulation(simulation, forceSample, forceFull) let hybridSimulation = d3.hybridSimulation(simulation, forceSample, forceFull)