Difference between revisions of "MemEOL"
From Desal Wiki
Line 60: | Line 60: | ||
//now multiply each centroid weight by each magic number to get scores | //now multiply each centroid weight by each magic number to get scores | ||
var j=0; | var j=0; | ||
− | var scores= new Array(); | + | var scores = new Array(); |
for (var item in dictionaryMagicNumbers) { | for (var item in dictionaryMagicNumbers) { | ||
if(item == 'Options') continue; | if(item == 'Options') continue; | ||
Line 74: | Line 74: | ||
} | } | ||
return scores; | return scores; | ||
+ | console.log(scores); | ||
//now that we have the scores we need to check them and display the correct output | //now that we have the scores we need to check them and display the correct output | ||
} | } | ||
Line 148: | Line 149: | ||
var preferences = getPreferences(); //get preferences | var preferences = getPreferences(); //get preferences | ||
var scores = computePreferenceScores(preferences); //calculate matrix and produce scores for each criterion | var scores = computePreferenceScores(preferences); //calculate matrix and produce scores for each criterion | ||
+ | console.log(scores); | ||
var scoreObject = scoresArrayToObject(); //convert from array to object | var scoreObject = scoresArrayToObject(); //convert from array to object | ||
//now that we can access the scores by name we can make the additonal calculations for reuse as RO and conversion to UF | //now that we can access the scores by name we can make the additonal calculations for reuse as RO and conversion to UF |
Revision as of 07:37, 8 December 2014
Introduction text