#! /bin/bash #historicalDataFile outputFile ScaleFactorCount Iterations Seed cd .. make MyRoot="../../../trunk/" # Create tmp directory if necessary if [ ! -d /tmp/$USER ] then mkdir "/tmp/$USER" fi Iterations=100000 Seed=$RANDOM NasaInput="/tmp/$USER/nasa93_all.csv.numeric" Coc81Input="/tmp/$USER/coc81_all.csv.numeric" NasaOutput="/tmp/$USER/nasa93_bootstrapped_ab_pairs.csv" Coc81Output="/tmp/$USER/coc81_bootstrapped_ab_pairs.csv" # Preprocess the data echo "Preprocessing nasa93.csv" gawk -f $MyRoot"baker_lc/convertcsv.awk" Method="COC81" Style="precise" $MyRoot"data/nasa93.csv" > $NasaInput echo "Preprocessed nasa93 stored at "$NasaInput echo "Preprocessing coc81.csv" gawk -f $MyRoot"baker_lc/convertcsv.awk" Method="COC81" Style="precise" $MyRoot"data/coc81.csv" > $Coc81Input echo "Preprocessed coc81 stored at "$Coc81Input echo "Using "$Iterations" bootstrap samples and a random generator seed of "$Seed echo "Calling bootstrapping for nasa93. This may take some time." bootstrapped_lc $NasaInput $NasaOutput 0 $Iterations $Seed echo "Nasa93 bootstrap results saved to "$NasaOutput echo "" echo "Calling bootstrapping for coc81. This may take some time." bootstrapped_lc $Coc81Input $Coc81Output 0 $Iterations $Seed echo "Coc81 bootstrap results saved to "$Coc81Output echo ""