#!/bin/sh # results of evaluation of straying outside a cache # this cats together the text files and the generated tables # first argument is amount of look-ahead # second argument is cache size ("v" if variable) # third argument, if present, is N -- meaning no-headings (i.e. omit content-type line) # fourth argument if present is N -- meaning omit textual explanation ME="/home/pjbrown" # special set up because HOSTTYPE is not set on apache at exeter if test x"$SERVER_NAME" = x"www.dcs.ex.ac.uk"; then HOSTTYPE=sun4; export HOSTTYPE fi INCLUDE_TEXT=Y ARGC=$# if test $# -eq 4; then INCLUDE_TEXT=N if test x"$4" -ne N; then echo "POSSIBLE SCRIPT ERROR in $0: arg 4 if present, should be N" fi ARGC=3 fi if test $ARGC -eq 3; then if test x"$3" -ne N; then echo "POSSIBLE SCRIPT ERROR in $0: arg 3 if present, should be N" fi else echo "content-type:text/html" echo if test $ARGC -ne 2; then echo "ERROR: wrong number of arguments to $0: $#" exit fi fi if test x"$2" = "xv"; then MESSAGE="variable-sized cache" else MESSAGE="cache of size $2" fi # (0) output the heading echo ' Research issues in context-aware retrieval: evaluation experiment on straying for'" $MESSAGE and look-ahead $2"' ' # (1) output the fixed text at the start of the paper (omitting lines headed COMMENTARY) echo "

== Results for $MESSAGE and look ahead of $1 km. ==

" if test -f ../evaluation/t_sty_lib20_$1_$2_Exeter.html; then echo else echo "WARNING: some or all of the files are missing; the experiments for these values probably have not been performed, and the tables generated below will be incomplete or null.

" fi if test x"$INCLUDE_TEXT" = xY; then $ME/bin/cat_body ../car_project/stray_evaluation.html | grep -v "^COMMENTARY" fi echo "

APPENDIX A: results of individual tests using default algorithm and $MESSAGE

" #(2) append the tables CACHE_SQUARE=20 INTERESTOFFSET=$1 CACHE_SIZE=$2 #echo "

INTEREST OFFSET is $INTERESTOFFSET; arg 0 is $0" # results using default CM algorithm for k in `ls ../evaluation/t_sty_CM${CACHE_SQUARE}_${INTERESTOFFSET}_${CACHE_SIZE}_*`; do #echo "

k is $k;

`ls -l $k;`

` ls -l $ME/bin/cat_body``" #echo "

Calling $ME/bin/cat_body" $ME/bin/cat_body $k 2>&1 done echo "

APPENDIX B: results of individual tests using research library algorithm and $MESSAGE

" # results using default research library algorithm for k in `ls ../evaluation/t_sty_lib${CACHE_SQUARE}_${INTERESTOFFSET}_${CACHE_SIZE}_*`; do #echo k is $k $ME/bin/cat_body $k 2>&1 done # regenerate the summary table and add it to the output $ME/tourist_database/cache/summarise_caches $ME/public_html/evaluation/table_summary $CACHE_SQUARE $INTERESTOFFSET $CACHE_SIZE 2>&1 cat $ME/public_html/evaluation/table_summary${CACHE_SQUARE}_${INTERESTOFFSET}_${CACHE_SIZE}.html # generate a summary for various look-aheads $ME/tourist_database/cache/overall_summary $CACHE_SIZE cat $ME/public_html/evaluation/overall_summary.html echo " "