// This function is executed when the factory button is pressed in order to bring the visualization in the initial state.
// This function is executed when the factory button is pressed in order to bring the visualization in the initial state.
functionFactoryReset(){
functionFactoryReset(){
@ -78,6 +79,7 @@ function fetchVal(callback) {
// Parse the analysis folder if requested or the csv file if we run a new execution.
// Parse the analysis folder if requested or the csv file if we run a new execution.
vargetData=function(){
vargetData=function(){
PreComputFlagCorrelation=true;
letformat;
letformat;
letvalue;
letvalue;
if(typeofwindow.FileReader!=='function'){
if(typeofwindow.FileReader!=='function'){
@ -1377,7 +1379,7 @@ function click(){ // This is the click of the Schema Investigation scenario
}
}
functionCalculateCorrel(){// Calculate the correlation is a function which has all the computations for the schema ordering (investigation).
functionCalculateCorrel(){// Calculate the correlation is a function which has all the computations for the schema ordering (investigation).
if(flagForSchema==false){
if(flagForSchema==false){
alert("Please, draw a schema first!");// If no Schema is drawn then ask the user!
alert("Please, draw a schema first!");// If no Schema is drawn then ask the user!
}else{
}else{
@ -1436,14 +1438,12 @@ function CalculateCorrel(){ // Calculate the correlation is a function which has
}
}
ArrayLimit=[];
ArrayLimit=[];
for(vari=0;i<arraysCleared.length;i++){
for(vari=0;i<arraysCleared.length;i++){
if(arraysCleared[i][5]<correlLimit){// Now we add a limit to the distance that we search according to the thresholder which the user changes through a slider.
if(arraysCleared[i][5]<correlLimit){// Now we add a limit to the distance that we search according to the thresholder which the user changes through a slider.
ArrayLimit.push(arraysCleared[i]);
ArrayLimit.push(arraysCleared[i]);
}
}
}
}
vartemparray=[];
vartemparray=[];
varcount=newArray(paths.nodes().length).fill(0);
varcount=newArray(paths.nodes().length).fill(0);
@ -1525,7 +1525,7 @@ function CalculateCorrel(){ // Calculate the correlation is a function which has
}
}
}
}
}
}
if(ArrayContainsDataFeaturesLimit.length==0){// If no points were selected then send a message to the user! And set everything again to the initial state.
if(ArrayContainsDataFeaturesLimit.length==0){// If no points were selected then send a message to the user! And set everything again to the initial state.
d3.selectAll("#correlation > *").remove();
d3.selectAll("#correlation > *").remove();
d3.selectAll("#modtSNEcanvas_svg > *").remove();
d3.selectAll("#modtSNEcanvas_svg > *").remove();
@ -1593,7 +1593,33 @@ function CalculateCorrel(){ // Calculate the correlation is a function which has