#!/bin/bash
index=0
execution=5
file=../../reteUtentiMikeHidden.arff
lib=../../lib/*
bin=build/classes
curDir=`pwd`

outputFolder=$curDir/output/random/
prefixOutput=random
random=true

suffixOutput=.dat

cd $bin
while [ "$index" -lt "$execution" ]
do
  echo "Clustering task #$index"
  java -Xms256m -Xmx1024m -cp .:$lib weka.clusterers.MetisMQIClusterer -V 0 -R $random -S 100 -N 50 -t $file > $outputFolder$prefixOutput$index$suffixOutput
  index=`expr $index + 1`
done
cd $curDir

echo

exit 0
