Seed=1 Tmp=$HOME/tmp cd .. time pgawk --dump-variables=$Tmp/vars`basename $0` \ --profile=$Tmp/prof`basename $0` \ -f cbr.awk \ --source ' function go(samples,k1,k2, \ projects, neighbors, edges, bestRows, restRows, best, rest,\ dummy,knearest,rankeds,ranked,sorted,i) { # 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) rankeds = rank(k1,k2,best,rest, ranked) selects(knearest,Train,rankeds,ranked) } END { go(5,5,15) } ' Seed=$Seed SelectsDebug=0 nasa93.dat nasa93.proj1