Seed=1 Tmp=$HOME/tmp cd .. pgawk --dump-variables=$Tmp/vars`basename $0` \ --profile=$Tmp/prof`basename $0` \ -f cbr.awk \ --source ' BEGIN {print "I am " (Nomograms ? "" : " not ") " doing Nomo"} function go(samples,k1,k2, \ projects, neighbors, edges, knearest, best, rest, ranked) { # inputs outputs # ------ ------- print "\n---| " Relation " |--------------------------" projects(Train,samples, projects) neighbors(samples,projects,Train[0],Train, neighbors,edges) knn(k1+k2,samples,neighbors,edges, knearest) bestRest(knearest, k1, best,rest) saya(best,"best") saya(rest,"rest") rank(k1,k2,best,rest, ranked) saya(ranked,"ranked") } END { go(5,5,15) } ' Seed=$Seed RankDebug=0 nasa93.dat nasa93.proj1