Ignore:
Timestamp:
Apr 16, 2008, 12:11:38 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • Add mode 8, for the very first graphic in the paper.
  • Add results for mode 8 in part0/lena-values.txt.
  • Make the bytecode version use less memory.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • research/2008-displacement/README

    r2286 r2288  
    1616
    1717# Get phase 3 and phase 4 stuff
    18 ssh canard.zoy.org "cd test-20080329; tar cz *raster.txt *serp.txt" | tar xz
     18# .. from canard
     19ssh canard.zoy.org "cd test-20080329; tar cz *raster.txt" | tar xz
     20ssh canard.zoy.org "cd test-20080329; tar cz *serp.txt" | tar xz
    1921for x in *-raster.txt; do y="$x"; y="${y%%-raster.txt}"; y="${y%%.tiff}"; y="${y##usc-sipi}"; \mv "$x" part3/"$y".txt; done
    2022for x in *-serp.txt; do y="$x"; y="${y%%-serp.txt}"; y="${y%%.tiff}"; y="${y##usc-sipi}"; \mv "$x" part4/"$y".txt; done
     23# .. from poulet (cpushare)
     24scp poulet.zoy.org:cpushare/'test*-*.txt' .
     25for f in test6-*.txt; do grep '###' $f|cut -f2 -d'`'|cut -f1 -d"'"|tr / .|while read i ; do sed -ne '/`'$i'/,/limit/p' $f | cut -b61- >| part3/$(echo $i | cut -f5 -d.).txt ; done; done; rm -f test6-*.txt
     26for f in test7-*.txt; do grep '###' $f|cut -f2 -d'`'|cut -f1 -d"'"|tr / .|while read i ; do sed -ne '/`'$i'/,/limit/p' $f | cut -b61- >| part4/$(echo $i | cut -f5 -d.).txt ; done; done; rm -f test7-*.txt
    2127
    2228# Condorcet voting for part 3 and 4
     
    3844cat part4/aerials2.1.01.txt | grep K | while read x k y ; do grep $k part4/* | awk '{ dx+=$10; dy+=$12; n+=1 } END { print dx/n, dy/n }' | read dx dy; echo "$k $(grep $k part4/* | awk 'BEGIN { dx='$dx'; dy='$dy' } { x=dx-$10; y=dy-$12; t+=2.^-5*(x*x+y*y); a+=t*$8; n+=t } END { print a/n, n }')"; done | sort -nk2 | head -20
    3945
     46# Plot lena displacement
     47set contour
     48unset surface
     49set view 0,0
     50set cntrparam levels discrete 0.31, 0.35, 0.42, 0.52, 0.7, 1, 1.5
     51set xrange [-1:1]
     52set yrange [1:-1]
     53set mxtics 2
     54set mytics 2
     55set size square
     56set xzeroaxis
     57set yzeroaxis
     58set xlabel "dx" font "Italic,32"
     59splot 'part0/lena-values.txt' with lines
     60
     61
     62#set border 0
     63set style line 1 lt 1 lw 1
     64set style line 2 lt 2 lw 1
     65set style line 3 lt 3 lw 1
     66set style line 4 lt 6 lw 1
     67set style line 5 lt 1 lw 3
     68set style line 6 lt 2 lw 3
     69set style line 7 lt 3 lw 3
     70set style line 8 lt 6 lw 3
    4071###
    4172###
Note: See TracChangeset for help on using the changeset viewer.