#!/bin/bash -p

# Run an experiment and redirect output
# Order of arguments is same as for kdTreeWithStatistics.py
# This script is meant to be started remotely by an ssh command
# (e.g., start_experiments)
# Assumes this script is run from the home directory,
# and ANN is directly underneath!

if [[ $1 -lt 10 ]]
then
	s=0$1
else
	s=$1
fi

logfile="log_distrib=${5}_start=${s}_end=${2}_eps=${3}_numpts=${4}"

cd ./ANN
nohup ./kdTreeWithStatistics.py $1 $2 $3 $4 $5 > $logfile &

