__author__ = 'stubbfel'
import csv
def readCSV(fileName):
    with open(fileName, newline='\n') as csvFile:
        reader = csv.reader(csvFile)
        csvTable = []
        for row in reader:
            csvTable.append(row)
        return csvTable

def writeCSV (fileName,table):
    with open(fileName, 'w', newline='\n') as csvFile:
        writer = csv.writer(csvFile, delimiter='\t')
        writer.writerows(table)

def aggrateRow(row,discardIndex):
    colCount = 0
    colSum = 0
    workcopy = row[:]
    del workcopy[discardIndex]

    for col in workcopy:
        colCount += 1
        if col.isnumeric():
            colSum += int(col)
    return colSum / colCount

def aggrateCol(colIndex, table):
    rowCount = 0
    rowSum = 0

    for row in table:
        if colIndex < len(row):
            str = row[colIndex]
            if is_number(str):
                rowSum += float(str)
                rowCount += 1

    mean = rowSum / rowCount
    tmVar = 0
    for row in table:
        if colIndex < len(row):
            str = row[colIndex]
            if is_number(str):
                tmVar += (float(str)-mean)**2

    var = (tmVar / rowCount)**.5
    return mean, var

def aggrateCSVFile(files):
    for fileName in files:
        csvTable = readCSV(fileName)
        firstRow = False
        for row in csvTable:
            if firstRow:
                row.append(str(int(aggrateRow(row, 0))))
            else:
                row.append('Aggreate('+fileName+')')
                firstRow = True
        writeCSV('AG'+fileName,csvTable)

def mergeCSV(files, colIndex, outPutName):
    newTable = []
    for file in files:
        cvsTable = readCSV(file)
        newRow = []

        for row in cvsTable:
            newRow.append(row[colIndex])
        newTable.append(newRow)

    maxLen = 0
    for row in newTable:
        tmpLen = len(row)
        if tmpLen > maxLen:
            maxLen = tmpLen

    for row in newTable:
        diff = maxLen - len(row)
        for i in range(0, diff):
            row.append('0')

    zipNewTable  = []
    xindex = 0
    for x in zip(*newTable):
        if xindex == 0:
            zipNewTable.append(['time'])
        else:
            zipNewTable.append([str(xindex-1)])
        xindex += 1
        for y in x:
            zipNewTable[-1].append(y)

    for row in zipNewTable:
        print(row)
    writeCSV(outPutName,zipNewTable)

def calcNormRuntime(files, timecolIndex,outPutName, outPutName2):
    resultTable = [[]]
    scalTable = [[]]
    init = False
    tabledim = 0
    for file in files:
        inputTable = readCSV(file)

        if not init:
            timeheader = inputTable[0][timecolIndex]
            init = True
            tabledim = len(inputTable[0])-1
            for head in inputTable[0]:
                if timeheader != head:
                    resultTable[0].append("Norm"+head)
                    scalTable[0].append("Mean:"+head)
                    scalTable[0].append("Var:"+head)

        maxTime = int(inputTable[-1][timecolIndex])
        resultTable.append(['0']*tabledim)
        for row in inputTable:
            tmplist = all_indices('0',row)
            for index in tmplist:
                if resultTable[-1][index-1] == '0' or resultTable[-1][index-1] == '0.0':
                    resultTable[-1][index-1] = str(int(row[0])/maxTime)

    for row in resultTable:
            print(row)

    scalTable.append([])
    for colindex in range(0,tabledim):
        meanVar = aggrateCol(colindex, resultTable)
        scalTable[-1].append(str(meanVar[0]))
        scalTable[-1].append(str(meanVar[1]))

    for row in scalTable:
        print(row)

    writeCSV(outPutName,resultTable)
    writeCSV(outPutName2,scalTable)

def all_indices(value, qlist):
    indices = []
    idx = -1
    while True:
        try:
            idx = qlist.index(value, idx+1)
            indices.append(idx)
        except ValueError:
            break
    return indices

def is_number(s):
    try:
        float(s)
        return True
    except ValueError:
        return False

#aggrateCSVFile(["0xx.csv","1xx.csv", "2xx.csv", "x0x.csv", "x1x.csv", "x2x.csv", "xx0.csv", "xx1.csv", "xx2.csv", "xx3.csv", "xx4.csv", "xx5.csv", "xx7.csv"])
#mergeCSV(["AG0xx.csv","AG1xx.csv", "AG2xx.csv", "AGx0x.csv", "AGx1x.csv", "AGx2x.csv", "AGxx0.csv", "AGxx1.csv", "AGxx2.csv", "AGxx3.csv", "AGxx4.csv", "AGxx5.csv", "AGxx7.csv"],-1,"allag.csv")
#mergeCSV(["AG0xx.csv","AG1xx.csv", "AG2xx.csv"],-1,"allyxx.csv")
#mergeCSV(["AGx0x.csv", "AGx1x.csv", "AGx2x.csv"],-1,"allxyx.csv")
#mergeCSV(["AGxx0.csv", "AGxx1.csv", "AGxx2.csv", "AGxx3.csv", "AGxx4.csv", "AGxx5.csv", "AGxx7.csv"],-1,"allxxy.csv")
calcNormRuntime(["0xx.csv-testpatt-10-10.csv","0xx.csv-testpatt-10-100.csv","0xx.csv-testpatt-10-20.csv","0xx.csv-testpatt-10-30.csv","0xx.csv-testpatt-10-40.csv","0xx.csv-testpatt-10-50.csv","0xx.csv-testpatt-10-60.csv","0xx.csv-testpatt-10-70.csv","0xx.csv-testpatt-10-80.csv","0xx.csv-testpatt-10-90.csv","0xx.csv-testpatt-20-10.csv","0xx.csv-testpatt-20-100.csv","0xx.csv-testpatt-20-20.csv","0xx.csv-testpatt-20-30.csv","0xx.csv-testpatt-20-40.csv","0xx.csv-testpatt-20-50.csv","0xx.csv-testpatt-20-60.csv","0xx.csv-testpatt-20-70.csv","0xx.csv-testpatt-20-80.csv","0xx.csv-testpatt-20-90.csv","0xx.csv-testpatt-30-10.csv","0xx.csv-testpatt-30-100.csv","0xx.csv-testpatt-30-20.csv","0xx.csv-testpatt-30-30.csv","0xx.csv-testpatt-30-40.csv","0xx.csv-testpatt-30-50.csv","0xx.csv-testpatt-30-60.csv","0xx.csv-testpatt-30-70.csv","0xx.csv-testpatt-30-80.csv","0xx.csv-testpatt-30-90.csv","0xx.csv-testpatt-40-10.csv","0xx.csv-testpatt-40-100.csv","0xx.csv-testpatt-40-20.csv","0xx.csv-testpatt-40-30.csv","0xx.csv-testpatt-40-40.csv","0xx.csv-testpatt-40-50.csv","0xx.csv-testpatt-40-60.csv","0xx.csv-testpatt-40-70.csv","0xx.csv-testpatt-40-80.csv","0xx.csv-testpatt-40-90.csv","0xx.csv-testpatt-50-10.csv","0xx.csv-testpatt-50-100.csv","0xx.csv-testpatt-50-20.csv","0xx.csv-testpatt-50-30.csv","0xx.csv-testpatt-50-40.csv","0xx.csv-testpatt-50-50.csv","0xx.csv-testpatt-50-60.csv","0xx.csv-testpatt-50-70.csv","0xx.csv-testpatt-50-80.csv","0xx.csv-testpatt-50-90.csv","0xx.csv-testpatt-60-10.csv","0xx.csv-testpatt-60-100.csv","0xx.csv-testpatt-60-20.csv","0xx.csv-testpatt-60-30.csv","0xx.csv-testpatt-60-40.csv","0xx.csv-testpatt-60-50.csv","0xx.csv-testpatt-60-60.csv","0xx.csv-testpatt-60-70.csv","0xx.csv-testpatt-60-80.csv","0xx.csv-testpatt-60-90.csv","0xx.csv-testpatt-70-10.csv","0xx.csv-testpatt-70-100.csv","0xx.csv-testpatt-70-20.csv","0xx.csv-testpatt-70-30.csv","0xx.csv-testpatt-70-40.csv","0xx.csv-testpatt-70-50.csv","0xx.csv-testpatt-70-60.csv","0xx.csv-testpatt-70-70.csv","0xx.csv-testpatt-70-80.csv","0xx.csv-testpatt-70-90.csv","0xx.csv-testpatt-80-10.csv","0xx.csv-testpatt-80-100.csv","0xx.csv-testpatt-80-20.csv","0xx.csv-testpatt-80-30.csv","0xx.csv-testpatt-80-40.csv","0xx.csv-testpatt-80-50.csv","0xx.csv-testpatt-80-60.csv","0xx.csv-testpatt-80-70.csv","0xx.csv-testpatt-80-80.csv","0xx.csv-testpatt-80-90.csv","0xx.csv-testpatt-90-10.csv","0xx.csv-testpatt-90-100.csv","0xx.csv-testpatt-90-20.csv","0xx.csv-testpatt-90-30.csv","0xx.csv-testpatt-90-40.csv","0xx.csv-testpatt-90-50.csv","0xx.csv-testpatt-90-60.csv","0xx.csv-testpatt-90-70.csv","0xx.csv-testpatt-90-80.csv","0xx.csv-testpatt-90-90.csv"],0,"norm0xx.csv", "sca0xx.csv")
calcNormRuntime(["1xx.csv-testpatt-10-10.csv","1xx.csv-testpatt-10-100.csv","1xx.csv-testpatt-10-20.csv","1xx.csv-testpatt-10-30.csv","1xx.csv-testpatt-10-40.csv","1xx.csv-testpatt-10-50.csv","1xx.csv-testpatt-10-60.csv","1xx.csv-testpatt-10-70.csv","1xx.csv-testpatt-10-80.csv","1xx.csv-testpatt-10-90.csv","1xx.csv-testpatt-20-10.csv","1xx.csv-testpatt-20-100.csv","1xx.csv-testpatt-20-20.csv","1xx.csv-testpatt-20-30.csv","1xx.csv-testpatt-20-40.csv","1xx.csv-testpatt-20-50.csv","1xx.csv-testpatt-20-60.csv","1xx.csv-testpatt-20-70.csv","1xx.csv-testpatt-20-80.csv","1xx.csv-testpatt-20-90.csv","1xx.csv-testpatt-30-10.csv","1xx.csv-testpatt-30-100.csv","1xx.csv-testpatt-30-20.csv","1xx.csv-testpatt-30-30.csv","1xx.csv-testpatt-30-40.csv","1xx.csv-testpatt-30-50.csv","1xx.csv-testpatt-30-60.csv","1xx.csv-testpatt-30-70.csv","1xx.csv-testpatt-30-80.csv","1xx.csv-testpatt-30-90.csv","1xx.csv-testpatt-40-10.csv","1xx.csv-testpatt-40-100.csv","1xx.csv-testpatt-40-20.csv","1xx.csv-testpatt-40-30.csv","1xx.csv-testpatt-40-40.csv","1xx.csv-testpatt-40-50.csv","1xx.csv-testpatt-40-60.csv","1xx.csv-testpatt-40-70.csv","1xx.csv-testpatt-40-80.csv","1xx.csv-testpatt-40-90.csv","1xx.csv-testpatt-50-10.csv","1xx.csv-testpatt-50-100.csv","1xx.csv-testpatt-50-20.csv","1xx.csv-testpatt-50-30.csv","1xx.csv-testpatt-50-40.csv","1xx.csv-testpatt-50-50.csv","1xx.csv-testpatt-50-60.csv","1xx.csv-testpatt-50-70.csv","1xx.csv-testpatt-50-80.csv","1xx.csv-testpatt-50-90.csv","1xx.csv-testpatt-60-10.csv","1xx.csv-testpatt-60-100.csv","1xx.csv-testpatt-60-20.csv","1xx.csv-testpatt-60-30.csv","1xx.csv-testpatt-60-40.csv","1xx.csv-testpatt-60-50.csv","1xx.csv-testpatt-60-60.csv","1xx.csv-testpatt-60-70.csv","1xx.csv-testpatt-60-80.csv","1xx.csv-testpatt-60-90.csv","1xx.csv-testpatt-70-10.csv","1xx.csv-testpatt-70-100.csv","1xx.csv-testpatt-70-20.csv","1xx.csv-testpatt-70-30.csv","1xx.csv-testpatt-70-40.csv","1xx.csv-testpatt-70-50.csv","1xx.csv-testpatt-70-60.csv","1xx.csv-testpatt-70-70.csv","1xx.csv-testpatt-70-80.csv","1xx.csv-testpatt-70-90.csv","1xx.csv-testpatt-80-10.csv","1xx.csv-testpatt-80-100.csv","1xx.csv-testpatt-80-20.csv","1xx.csv-testpatt-80-30.csv","1xx.csv-testpatt-80-40.csv","1xx.csv-testpatt-80-50.csv","1xx.csv-testpatt-80-60.csv","1xx.csv-testpatt-80-70.csv","1xx.csv-testpatt-80-80.csv","1xx.csv-testpatt-80-90.csv","1xx.csv-testpatt-90-10.csv","1xx.csv-testpatt-90-100.csv","1xx.csv-testpatt-90-20.csv","1xx.csv-testpatt-90-30.csv","1xx.csv-testpatt-90-40.csv","1xx.csv-testpatt-90-50.csv","1xx.csv-testpatt-90-60.csv","1xx.csv-testpatt-90-70.csv","1xx.csv-testpatt-90-80.csv","1xx.csv-testpatt-90-90.csv"],0,"norm1xx.csv", "sca1xx.csv")
calcNormRuntime(["2xx.csv-testpatt-10-10.csv","2xx.csv-testpatt-10-100.csv","2xx.csv-testpatt-10-20.csv","2xx.csv-testpatt-10-30.csv","2xx.csv-testpatt-10-40.csv","2xx.csv-testpatt-10-50.csv","2xx.csv-testpatt-10-60.csv","2xx.csv-testpatt-10-70.csv","2xx.csv-testpatt-10-80.csv","2xx.csv-testpatt-10-90.csv","2xx.csv-testpatt-20-10.csv","2xx.csv-testpatt-20-100.csv","2xx.csv-testpatt-20-20.csv","2xx.csv-testpatt-20-30.csv","2xx.csv-testpatt-20-40.csv","2xx.csv-testpatt-20-50.csv","2xx.csv-testpatt-20-60.csv","2xx.csv-testpatt-20-70.csv","2xx.csv-testpatt-20-80.csv","2xx.csv-testpatt-20-90.csv","2xx.csv-testpatt-30-10.csv","2xx.csv-testpatt-30-100.csv","2xx.csv-testpatt-30-20.csv","2xx.csv-testpatt-30-30.csv","2xx.csv-testpatt-30-40.csv","2xx.csv-testpatt-30-50.csv","2xx.csv-testpatt-30-60.csv","2xx.csv-testpatt-30-70.csv","2xx.csv-testpatt-30-80.csv","2xx.csv-testpatt-30-90.csv","2xx.csv-testpatt-40-10.csv","2xx.csv-testpatt-40-100.csv","2xx.csv-testpatt-40-20.csv","2xx.csv-testpatt-40-30.csv","2xx.csv-testpatt-40-40.csv","2xx.csv-testpatt-40-50.csv","2xx.csv-testpatt-40-60.csv","2xx.csv-testpatt-40-70.csv","2xx.csv-testpatt-40-80.csv","2xx.csv-testpatt-40-90.csv","2xx.csv-testpatt-50-10.csv","2xx.csv-testpatt-50-100.csv","2xx.csv-testpatt-50-20.csv","2xx.csv-testpatt-50-30.csv","2xx.csv-testpatt-50-40.csv","2xx.csv-testpatt-50-50.csv","2xx.csv-testpatt-50-60.csv","2xx.csv-testpatt-50-70.csv","2xx.csv-testpatt-50-80.csv","2xx.csv-testpatt-50-90.csv","2xx.csv-testpatt-60-10.csv","2xx.csv-testpatt-60-100.csv","2xx.csv-testpatt-60-20.csv","2xx.csv-testpatt-60-30.csv","2xx.csv-testpatt-60-40.csv","2xx.csv-testpatt-60-50.csv","2xx.csv-testpatt-60-60.csv","2xx.csv-testpatt-60-70.csv","2xx.csv-testpatt-60-80.csv","2xx.csv-testpatt-60-90.csv","2xx.csv-testpatt-70-10.csv","2xx.csv-testpatt-70-100.csv","2xx.csv-testpatt-70-20.csv","2xx.csv-testpatt-70-30.csv","2xx.csv-testpatt-70-40.csv","2xx.csv-testpatt-70-50.csv","2xx.csv-testpatt-70-60.csv","2xx.csv-testpatt-70-70.csv","2xx.csv-testpatt-70-80.csv","2xx.csv-testpatt-70-90.csv","2xx.csv-testpatt-80-10.csv","2xx.csv-testpatt-80-100.csv","2xx.csv-testpatt-80-20.csv","2xx.csv-testpatt-80-30.csv","2xx.csv-testpatt-80-40.csv","2xx.csv-testpatt-80-50.csv","2xx.csv-testpatt-80-60.csv","2xx.csv-testpatt-80-70.csv","2xx.csv-testpatt-80-80.csv","2xx.csv-testpatt-80-90.csv","2xx.csv-testpatt-90-10.csv","2xx.csv-testpatt-90-100.csv","2xx.csv-testpatt-90-20.csv","2xx.csv-testpatt-90-30.csv","2xx.csv-testpatt-90-40.csv","2xx.csv-testpatt-90-50.csv","2xx.csv-testpatt-90-60.csv","2xx.csv-testpatt-90-70.csv","2xx.csv-testpatt-90-80.csv","2xx.csv-testpatt-90-90.csv"],0,"norm2xx.csv", "sca2xx.csv")
calcNormRuntime(["x0x.csv-testpatt-10-10.csv","x0x.csv-testpatt-10-100.csv","x0x.csv-testpatt-10-20.csv","x0x.csv-testpatt-10-30.csv","x0x.csv-testpatt-10-40.csv","x0x.csv-testpatt-10-50.csv","x0x.csv-testpatt-10-60.csv","x0x.csv-testpatt-10-70.csv","x0x.csv-testpatt-10-80.csv","x0x.csv-testpatt-10-90.csv","x0x.csv-testpatt-20-10.csv","x0x.csv-testpatt-20-100.csv","x0x.csv-testpatt-20-20.csv","x0x.csv-testpatt-20-30.csv","x0x.csv-testpatt-20-40.csv","x0x.csv-testpatt-20-50.csv","x0x.csv-testpatt-20-60.csv","x0x.csv-testpatt-20-70.csv","x0x.csv-testpatt-20-80.csv","x0x.csv-testpatt-20-90.csv","x0x.csv-testpatt-30-10.csv","x0x.csv-testpatt-30-100.csv","x0x.csv-testpatt-30-20.csv","x0x.csv-testpatt-30-30.csv","x0x.csv-testpatt-30-40.csv","x0x.csv-testpatt-30-50.csv","x0x.csv-testpatt-30-60.csv","x0x.csv-testpatt-30-70.csv","x0x.csv-testpatt-30-80.csv","x0x.csv-testpatt-30-90.csv","x0x.csv-testpatt-40-10.csv","x0x.csv-testpatt-40-100.csv","x0x.csv-testpatt-40-20.csv","x0x.csv-testpatt-40-30.csv","x0x.csv-testpatt-40-40.csv","x0x.csv-testpatt-40-50.csv","x0x.csv-testpatt-40-60.csv","x0x.csv-testpatt-40-70.csv","x0x.csv-testpatt-40-80.csv","x0x.csv-testpatt-40-90.csv","x0x.csv-testpatt-50-10.csv","x0x.csv-testpatt-50-100.csv","x0x.csv-testpatt-50-20.csv","x0x.csv-testpatt-50-30.csv","x0x.csv-testpatt-50-40.csv","x0x.csv-testpatt-50-50.csv","x0x.csv-testpatt-50-60.csv","x0x.csv-testpatt-50-70.csv","x0x.csv-testpatt-50-80.csv","x0x.csv-testpatt-50-90.csv","x0x.csv-testpatt-60-10.csv","x0x.csv-testpatt-60-100.csv","x0x.csv-testpatt-60-20.csv","x0x.csv-testpatt-60-30.csv","x0x.csv-testpatt-60-40.csv","x0x.csv-testpatt-60-50.csv","x0x.csv-testpatt-60-60.csv","x0x.csv-testpatt-60-70.csv","x0x.csv-testpatt-60-80.csv","x0x.csv-testpatt-60-90.csv","x0x.csv-testpatt-70-10.csv","x0x.csv-testpatt-70-100.csv","x0x.csv-testpatt-70-20.csv","x0x.csv-testpatt-70-30.csv","x0x.csv-testpatt-70-40.csv","x0x.csv-testpatt-70-50.csv","x0x.csv-testpatt-70-60.csv","x0x.csv-testpatt-70-70.csv","x0x.csv-testpatt-70-80.csv","x0x.csv-testpatt-70-90.csv","x0x.csv-testpatt-80-10.csv","x0x.csv-testpatt-80-100.csv","x0x.csv-testpatt-80-20.csv","x0x.csv-testpatt-80-30.csv","x0x.csv-testpatt-80-40.csv","x0x.csv-testpatt-80-50.csv","x0x.csv-testpatt-80-60.csv","x0x.csv-testpatt-80-70.csv","x0x.csv-testpatt-80-80.csv","x0x.csv-testpatt-80-90.csv","x0x.csv-testpatt-90-10.csv","x0x.csv-testpatt-90-100.csv","x0x.csv-testpatt-90-20.csv","x0x.csv-testpatt-90-30.csv","x0x.csv-testpatt-90-40.csv","x0x.csv-testpatt-90-50.csv","x0x.csv-testpatt-90-60.csv","x0x.csv-testpatt-90-70.csv","x0x.csv-testpatt-90-80.csv","x0x.csv-testpatt-90-90.csv"],0,"normx0x.csv", "scax0x.csv")
calcNormRuntime(["x1x.csv-testpatt-10-10.csv","x1x.csv-testpatt-10-100.csv","x1x.csv-testpatt-10-20.csv","x1x.csv-testpatt-10-30.csv","x1x.csv-testpatt-10-40.csv","x1x.csv-testpatt-10-50.csv","x1x.csv-testpatt-10-60.csv","x1x.csv-testpatt-10-70.csv","x1x.csv-testpatt-10-80.csv","x1x.csv-testpatt-10-90.csv","x1x.csv-testpatt-20-10.csv","x1x.csv-testpatt-20-100.csv","x1x.csv-testpatt-20-20.csv","x1x.csv-testpatt-20-30.csv","x1x.csv-testpatt-20-40.csv","x1x.csv-testpatt-20-50.csv","x1x.csv-testpatt-20-60.csv","x1x.csv-testpatt-20-70.csv","x1x.csv-testpatt-20-80.csv","x1x.csv-testpatt-20-90.csv","x1x.csv-testpatt-30-10.csv","x1x.csv-testpatt-30-100.csv","x1x.csv-testpatt-30-20.csv","x1x.csv-testpatt-30-30.csv","x1x.csv-testpatt-30-40.csv","x1x.csv-testpatt-30-50.csv","x1x.csv-testpatt-30-60.csv","x1x.csv-testpatt-30-70.csv","x1x.csv-testpatt-30-80.csv","x1x.csv-testpatt-30-90.csv","x1x.csv-testpatt-40-10.csv","x1x.csv-testpatt-40-100.csv","x1x.csv-testpatt-40-20.csv","x1x.csv-testpatt-40-30.csv","x1x.csv-testpatt-40-40.csv","x1x.csv-testpatt-40-50.csv","x1x.csv-testpatt-40-60.csv","x1x.csv-testpatt-40-70.csv","x1x.csv-testpatt-40-80.csv","x1x.csv-testpatt-40-90.csv","x1x.csv-testpatt-50-10.csv","x1x.csv-testpatt-50-100.csv","x1x.csv-testpatt-50-20.csv","x1x.csv-testpatt-50-30.csv","x1x.csv-testpatt-50-40.csv","x1x.csv-testpatt-50-50.csv","x1x.csv-testpatt-50-60.csv","x1x.csv-testpatt-50-70.csv","x1x.csv-testpatt-50-80.csv","x1x.csv-testpatt-50-90.csv","x1x.csv-testpatt-60-10.csv","x1x.csv-testpatt-60-100.csv","x1x.csv-testpatt-60-20.csv","x1x.csv-testpatt-60-30.csv","x1x.csv-testpatt-60-40.csv","x1x.csv-testpatt-60-50.csv","x1x.csv-testpatt-60-60.csv","x1x.csv-testpatt-60-70.csv","x1x.csv-testpatt-60-80.csv","x1x.csv-testpatt-60-90.csv","x1x.csv-testpatt-70-10.csv","x1x.csv-testpatt-70-100.csv","x1x.csv-testpatt-70-20.csv","x1x.csv-testpatt-70-30.csv","x1x.csv-testpatt-70-40.csv","x1x.csv-testpatt-70-50.csv","x1x.csv-testpatt-70-60.csv","x1x.csv-testpatt-70-70.csv","x1x.csv-testpatt-70-80.csv","x1x.csv-testpatt-70-90.csv","x1x.csv-testpatt-80-10.csv","x1x.csv-testpatt-80-100.csv","x1x.csv-testpatt-80-20.csv","x1x.csv-testpatt-80-30.csv","x1x.csv-testpatt-80-40.csv","x1x.csv-testpatt-80-50.csv","x1x.csv-testpatt-80-60.csv","x1x.csv-testpatt-80-70.csv","x1x.csv-testpatt-80-80.csv","x1x.csv-testpatt-80-90.csv","x1x.csv-testpatt-90-10.csv","x1x.csv-testpatt-90-100.csv","x1x.csv-testpatt-90-20.csv","x1x.csv-testpatt-90-30.csv","x1x.csv-testpatt-90-40.csv","x1x.csv-testpatt-90-50.csv","x1x.csv-testpatt-90-60.csv","x1x.csv-testpatt-90-70.csv","x1x.csv-testpatt-90-80.csv","x1x.csv-testpatt-90-90.csv"],0,"normx1x.csv", "scax1x.csv")
calcNormRuntime(["x2x.csv-testpatt-10-10.csv","x2x.csv-testpatt-10-100.csv","x2x.csv-testpatt-10-20.csv","x2x.csv-testpatt-10-30.csv","x2x.csv-testpatt-10-40.csv","x2x.csv-testpatt-10-50.csv","x2x.csv-testpatt-10-60.csv","x2x.csv-testpatt-10-70.csv","x2x.csv-testpatt-10-80.csv","x2x.csv-testpatt-10-90.csv","x2x.csv-testpatt-20-10.csv","x2x.csv-testpatt-20-100.csv","x2x.csv-testpatt-20-20.csv","x2x.csv-testpatt-20-30.csv","x2x.csv-testpatt-20-40.csv","x2x.csv-testpatt-20-50.csv","x2x.csv-testpatt-20-60.csv","x2x.csv-testpatt-20-70.csv","x2x.csv-testpatt-20-80.csv","x2x.csv-testpatt-20-90.csv","x2x.csv-testpatt-30-10.csv","x2x.csv-testpatt-30-100.csv","x2x.csv-testpatt-30-20.csv","x2x.csv-testpatt-30-30.csv","x2x.csv-testpatt-30-40.csv","x2x.csv-testpatt-30-50.csv","x2x.csv-testpatt-30-60.csv","x2x.csv-testpatt-30-70.csv","x2x.csv-testpatt-30-80.csv","x2x.csv-testpatt-30-90.csv","x2x.csv-testpatt-40-10.csv","x2x.csv-testpatt-40-100.csv","x2x.csv-testpatt-40-20.csv","x2x.csv-testpatt-40-30.csv","x2x.csv-testpatt-40-40.csv","x2x.csv-testpatt-40-50.csv","x2x.csv-testpatt-40-60.csv","x2x.csv-testpatt-40-70.csv","x2x.csv-testpatt-40-80.csv","x2x.csv-testpatt-40-90.csv","x2x.csv-testpatt-50-10.csv","x2x.csv-testpatt-50-100.csv","x2x.csv-testpatt-50-20.csv","x2x.csv-testpatt-50-30.csv","x2x.csv-testpatt-50-40.csv","x2x.csv-testpatt-50-50.csv","x2x.csv-testpatt-50-60.csv","x2x.csv-testpatt-50-70.csv","x2x.csv-testpatt-50-80.csv","x2x.csv-testpatt-50-90.csv","x2x.csv-testpatt-60-10.csv","x2x.csv-testpatt-60-100.csv","x2x.csv-testpatt-60-20.csv","x2x.csv-testpatt-60-30.csv","x2x.csv-testpatt-60-40.csv","x2x.csv-testpatt-60-50.csv","x2x.csv-testpatt-60-60.csv","x2x.csv-testpatt-60-70.csv","x2x.csv-testpatt-60-80.csv","x2x.csv-testpatt-60-90.csv","x2x.csv-testpatt-70-10.csv","x2x.csv-testpatt-70-100.csv","x2x.csv-testpatt-70-20.csv","x2x.csv-testpatt-70-30.csv","x2x.csv-testpatt-70-40.csv","x2x.csv-testpatt-70-50.csv","x2x.csv-testpatt-70-60.csv","x2x.csv-testpatt-70-70.csv","x2x.csv-testpatt-70-80.csv","x2x.csv-testpatt-70-90.csv","x2x.csv-testpatt-80-10.csv","x2x.csv-testpatt-80-100.csv","x2x.csv-testpatt-80-20.csv","x2x.csv-testpatt-80-30.csv","x2x.csv-testpatt-80-40.csv","x2x.csv-testpatt-80-50.csv","x2x.csv-testpatt-80-60.csv","x2x.csv-testpatt-80-70.csv","x2x.csv-testpatt-80-80.csv","x2x.csv-testpatt-80-90.csv","x2x.csv-testpatt-90-10.csv","x2x.csv-testpatt-90-100.csv","x2x.csv-testpatt-90-20.csv","x2x.csv-testpatt-90-30.csv","x2x.csv-testpatt-90-40.csv","x2x.csv-testpatt-90-50.csv","x2x.csv-testpatt-90-60.csv","x2x.csv-testpatt-90-70.csv","x2x.csv-testpatt-90-80.csv","x2x.csv-testpatt-90-90.csv"],0,"normx2x.csv", "scax2x.csv")
calcNormRuntime(["xx0.csv-testpatt-10-10.csv","xx0.csv-testpatt-10-100.csv","xx0.csv-testpatt-10-20.csv","xx0.csv-testpatt-10-30.csv","xx0.csv-testpatt-10-40.csv","xx0.csv-testpatt-10-50.csv","xx0.csv-testpatt-10-60.csv","xx0.csv-testpatt-10-70.csv","xx0.csv-testpatt-10-80.csv","xx0.csv-testpatt-10-90.csv","xx0.csv-testpatt-20-10.csv","xx0.csv-testpatt-20-100.csv","xx0.csv-testpatt-20-20.csv","xx0.csv-testpatt-20-30.csv","xx0.csv-testpatt-20-40.csv","xx0.csv-testpatt-20-50.csv","xx0.csv-testpatt-20-60.csv","xx0.csv-testpatt-20-70.csv","xx0.csv-testpatt-20-80.csv","xx0.csv-testpatt-20-90.csv","xx0.csv-testpatt-30-10.csv","xx0.csv-testpatt-30-100.csv","xx0.csv-testpatt-30-20.csv","xx0.csv-testpatt-30-30.csv","xx0.csv-testpatt-30-40.csv","xx0.csv-testpatt-30-50.csv","xx0.csv-testpatt-30-60.csv","xx0.csv-testpatt-30-70.csv","xx0.csv-testpatt-30-80.csv","xx0.csv-testpatt-30-90.csv","xx0.csv-testpatt-40-10.csv","xx0.csv-testpatt-40-100.csv","xx0.csv-testpatt-40-20.csv","xx0.csv-testpatt-40-30.csv","xx0.csv-testpatt-40-40.csv","xx0.csv-testpatt-40-50.csv","xx0.csv-testpatt-40-60.csv","xx0.csv-testpatt-40-70.csv","xx0.csv-testpatt-40-80.csv","xx0.csv-testpatt-40-90.csv","xx0.csv-testpatt-50-10.csv","xx0.csv-testpatt-50-100.csv","xx0.csv-testpatt-50-20.csv","xx0.csv-testpatt-50-30.csv","xx0.csv-testpatt-50-40.csv","xx0.csv-testpatt-50-50.csv","xx0.csv-testpatt-50-60.csv","xx0.csv-testpatt-50-70.csv","xx0.csv-testpatt-50-80.csv","xx0.csv-testpatt-50-90.csv","xx0.csv-testpatt-60-10.csv","xx0.csv-testpatt-60-100.csv","xx0.csv-testpatt-60-20.csv","xx0.csv-testpatt-60-30.csv","xx0.csv-testpatt-60-40.csv","xx0.csv-testpatt-60-50.csv","xx0.csv-testpatt-60-60.csv","xx0.csv-testpatt-60-70.csv","xx0.csv-testpatt-60-80.csv","xx0.csv-testpatt-60-90.csv","xx0.csv-testpatt-70-10.csv","xx0.csv-testpatt-70-100.csv","xx0.csv-testpatt-70-20.csv","xx0.csv-testpatt-70-30.csv","xx0.csv-testpatt-70-40.csv","xx0.csv-testpatt-70-50.csv","xx0.csv-testpatt-70-60.csv","xx0.csv-testpatt-70-70.csv","xx0.csv-testpatt-70-80.csv","xx0.csv-testpatt-70-90.csv","xx0.csv-testpatt-80-10.csv","xx0.csv-testpatt-80-100.csv","xx0.csv-testpatt-80-20.csv","xx0.csv-testpatt-80-30.csv","xx0.csv-testpatt-80-40.csv","xx0.csv-testpatt-80-50.csv","xx0.csv-testpatt-80-60.csv","xx0.csv-testpatt-80-70.csv","xx0.csv-testpatt-80-80.csv","xx0.csv-testpatt-80-90.csv","xx0.csv-testpatt-90-10.csv","xx0.csv-testpatt-90-100.csv","xx0.csv-testpatt-90-20.csv","xx0.csv-testpatt-90-30.csv","xx0.csv-testpatt-90-40.csv","xx0.csv-testpatt-90-50.csv","xx0.csv-testpatt-90-60.csv","xx0.csv-testpatt-90-70.csv","xx0.csv-testpatt-90-80.csv","xx0.csv-testpatt-90-90.csv"],0,"normxx0.csv", "scaxx0.csv")
calcNormRuntime(["xx1.csv-testpatt-10-10.csv","xx1.csv-testpatt-10-100.csv","xx1.csv-testpatt-10-20.csv","xx1.csv-testpatt-10-30.csv","xx1.csv-testpatt-10-40.csv","xx1.csv-testpatt-10-50.csv","xx1.csv-testpatt-10-60.csv","xx1.csv-testpatt-10-70.csv","xx1.csv-testpatt-10-80.csv","xx1.csv-testpatt-10-90.csv","xx1.csv-testpatt-20-10.csv","xx1.csv-testpatt-20-100.csv","xx1.csv-testpatt-20-20.csv","xx1.csv-testpatt-20-30.csv","xx1.csv-testpatt-20-40.csv","xx1.csv-testpatt-20-50.csv","xx1.csv-testpatt-20-60.csv","xx1.csv-testpatt-20-70.csv","xx1.csv-testpatt-20-80.csv","xx1.csv-testpatt-20-90.csv","xx1.csv-testpatt-30-10.csv","xx1.csv-testpatt-30-100.csv","xx1.csv-testpatt-30-20.csv","xx1.csv-testpatt-30-30.csv","xx1.csv-testpatt-30-40.csv","xx1.csv-testpatt-30-50.csv","xx1.csv-testpatt-30-60.csv","xx1.csv-testpatt-30-70.csv","xx1.csv-testpatt-30-80.csv","xx1.csv-testpatt-30-90.csv","xx1.csv-testpatt-40-10.csv","xx1.csv-testpatt-40-100.csv","xx1.csv-testpatt-40-20.csv","xx1.csv-testpatt-40-30.csv","xx1.csv-testpatt-40-40.csv","xx1.csv-testpatt-40-50.csv","xx1.csv-testpatt-40-60.csv","xx1.csv-testpatt-40-70.csv","xx1.csv-testpatt-40-80.csv","xx1.csv-testpatt-40-90.csv","xx1.csv-testpatt-50-10.csv","xx1.csv-testpatt-50-100.csv","xx1.csv-testpatt-50-20.csv","xx1.csv-testpatt-50-30.csv","xx1.csv-testpatt-50-40.csv","xx1.csv-testpatt-50-50.csv","xx1.csv-testpatt-50-60.csv","xx1.csv-testpatt-50-70.csv","xx1.csv-testpatt-50-80.csv","xx1.csv-testpatt-50-90.csv","xx1.csv-testpatt-60-10.csv","xx1.csv-testpatt-60-100.csv","xx1.csv-testpatt-60-20.csv","xx1.csv-testpatt-60-30.csv","xx1.csv-testpatt-60-40.csv","xx1.csv-testpatt-60-50.csv","xx1.csv-testpatt-60-60.csv","xx1.csv-testpatt-60-70.csv","xx1.csv-testpatt-60-80.csv","xx1.csv-testpatt-60-90.csv","xx1.csv-testpatt-70-10.csv","xx1.csv-testpatt-70-100.csv","xx1.csv-testpatt-70-20.csv","xx1.csv-testpatt-70-30.csv","xx1.csv-testpatt-70-40.csv","xx1.csv-testpatt-70-50.csv","xx1.csv-testpatt-70-60.csv","xx1.csv-testpatt-70-70.csv","xx1.csv-testpatt-70-80.csv","xx1.csv-testpatt-70-90.csv","xx1.csv-testpatt-80-10.csv","xx1.csv-testpatt-80-100.csv","xx1.csv-testpatt-80-20.csv","xx1.csv-testpatt-80-30.csv","xx1.csv-testpatt-80-40.csv","xx1.csv-testpatt-80-50.csv","xx1.csv-testpatt-80-60.csv","xx1.csv-testpatt-80-70.csv","xx1.csv-testpatt-80-80.csv","xx1.csv-testpatt-80-90.csv","xx1.csv-testpatt-90-10.csv","xx1.csv-testpatt-90-100.csv","xx1.csv-testpatt-90-20.csv","xx1.csv-testpatt-90-30.csv","xx1.csv-testpatt-90-40.csv","xx1.csv-testpatt-90-50.csv","xx1.csv-testpatt-90-60.csv","xx1.csv-testpatt-90-70.csv","xx1.csv-testpatt-90-80.csv","xx1.csv-testpatt-90-90.csv"],0,"normxx1.csv", "scaxx1.csv")
calcNormRuntime(["xx2.csv-testpatt-10-10.csv","xx2.csv-testpatt-10-100.csv","xx2.csv-testpatt-10-20.csv","xx2.csv-testpatt-10-30.csv","xx2.csv-testpatt-10-40.csv","xx2.csv-testpatt-10-50.csv","xx2.csv-testpatt-10-60.csv","xx2.csv-testpatt-10-70.csv","xx2.csv-testpatt-10-80.csv","xx2.csv-testpatt-10-90.csv","xx2.csv-testpatt-20-10.csv","xx2.csv-testpatt-20-100.csv","xx2.csv-testpatt-20-20.csv","xx2.csv-testpatt-20-30.csv","xx2.csv-testpatt-20-40.csv","xx2.csv-testpatt-20-50.csv","xx2.csv-testpatt-20-60.csv","xx2.csv-testpatt-20-70.csv","xx2.csv-testpatt-20-80.csv","xx2.csv-testpatt-20-90.csv","xx2.csv-testpatt-30-10.csv","xx2.csv-testpatt-30-100.csv","xx2.csv-testpatt-30-20.csv","xx2.csv-testpatt-30-30.csv","xx2.csv-testpatt-30-40.csv","xx2.csv-testpatt-30-50.csv","xx2.csv-testpatt-30-60.csv","xx2.csv-testpatt-30-70.csv","xx2.csv-testpatt-30-80.csv","xx2.csv-testpatt-30-90.csv","xx2.csv-testpatt-40-10.csv","xx2.csv-testpatt-40-100.csv","xx2.csv-testpatt-40-20.csv","xx2.csv-testpatt-40-30.csv","xx2.csv-testpatt-40-40.csv","xx2.csv-testpatt-40-50.csv","xx2.csv-testpatt-40-60.csv","xx2.csv-testpatt-40-70.csv","xx2.csv-testpatt-40-80.csv","xx2.csv-testpatt-40-90.csv","xx2.csv-testpatt-50-10.csv","xx2.csv-testpatt-50-100.csv","xx2.csv-testpatt-50-20.csv","xx2.csv-testpatt-50-30.csv","xx2.csv-testpatt-50-40.csv","xx2.csv-testpatt-50-50.csv","xx2.csv-testpatt-50-60.csv","xx2.csv-testpatt-50-70.csv","xx2.csv-testpatt-50-80.csv","xx2.csv-testpatt-50-90.csv","xx2.csv-testpatt-60-10.csv","xx2.csv-testpatt-60-100.csv","xx2.csv-testpatt-60-20.csv","xx2.csv-testpatt-60-30.csv","xx2.csv-testpatt-60-40.csv","xx2.csv-testpatt-60-50.csv","xx2.csv-testpatt-60-60.csv","xx2.csv-testpatt-60-70.csv","xx2.csv-testpatt-60-80.csv","xx2.csv-testpatt-60-90.csv","xx2.csv-testpatt-70-10.csv","xx2.csv-testpatt-70-100.csv","xx2.csv-testpatt-70-20.csv","xx2.csv-testpatt-70-30.csv","xx2.csv-testpatt-70-40.csv","xx2.csv-testpatt-70-50.csv","xx2.csv-testpatt-70-60.csv","xx2.csv-testpatt-70-70.csv","xx2.csv-testpatt-70-80.csv","xx2.csv-testpatt-70-90.csv","xx2.csv-testpatt-80-10.csv","xx2.csv-testpatt-80-100.csv","xx2.csv-testpatt-80-20.csv","xx2.csv-testpatt-80-30.csv","xx2.csv-testpatt-80-40.csv","xx2.csv-testpatt-80-50.csv","xx2.csv-testpatt-80-60.csv","xx2.csv-testpatt-80-70.csv","xx2.csv-testpatt-80-80.csv","xx2.csv-testpatt-80-90.csv","xx2.csv-testpatt-90-10.csv","xx2.csv-testpatt-90-100.csv","xx2.csv-testpatt-90-20.csv","xx2.csv-testpatt-90-30.csv","xx2.csv-testpatt-90-40.csv","xx2.csv-testpatt-90-50.csv","xx2.csv-testpatt-90-60.csv","xx2.csv-testpatt-90-70.csv","xx2.csv-testpatt-90-80.csv","xx2.csv-testpatt-90-90.csv"],0,"normxx2.csv", "scaxx2.csv")
calcNormRuntime(["xx3.csv-testpatt-10-10.csv","xx3.csv-testpatt-10-100.csv","xx3.csv-testpatt-10-20.csv","xx3.csv-testpatt-10-30.csv","xx3.csv-testpatt-10-40.csv","xx3.csv-testpatt-10-50.csv","xx3.csv-testpatt-10-60.csv","xx3.csv-testpatt-10-70.csv","xx3.csv-testpatt-10-80.csv","xx3.csv-testpatt-10-90.csv","xx3.csv-testpatt-20-10.csv","xx3.csv-testpatt-20-100.csv","xx3.csv-testpatt-20-20.csv","xx3.csv-testpatt-20-30.csv","xx3.csv-testpatt-20-40.csv","xx3.csv-testpatt-20-50.csv","xx3.csv-testpatt-20-60.csv","xx3.csv-testpatt-20-70.csv","xx3.csv-testpatt-20-80.csv","xx3.csv-testpatt-20-90.csv","xx3.csv-testpatt-30-10.csv","xx3.csv-testpatt-30-100.csv","xx3.csv-testpatt-30-20.csv","xx3.csv-testpatt-30-30.csv","xx3.csv-testpatt-30-40.csv","xx3.csv-testpatt-30-50.csv","xx3.csv-testpatt-30-60.csv","xx3.csv-testpatt-30-70.csv","xx3.csv-testpatt-30-80.csv","xx3.csv-testpatt-30-90.csv","xx3.csv-testpatt-40-10.csv","xx3.csv-testpatt-40-100.csv","xx3.csv-testpatt-40-20.csv","xx3.csv-testpatt-40-30.csv","xx3.csv-testpatt-40-40.csv","xx3.csv-testpatt-40-50.csv","xx3.csv-testpatt-40-60.csv","xx3.csv-testpatt-40-70.csv","xx3.csv-testpatt-40-80.csv","xx3.csv-testpatt-40-90.csv","xx3.csv-testpatt-50-10.csv","xx3.csv-testpatt-50-100.csv","xx3.csv-testpatt-50-20.csv","xx3.csv-testpatt-50-30.csv","xx3.csv-testpatt-50-40.csv","xx3.csv-testpatt-50-50.csv","xx3.csv-testpatt-50-60.csv","xx3.csv-testpatt-50-70.csv","xx3.csv-testpatt-50-80.csv","xx3.csv-testpatt-50-90.csv","xx3.csv-testpatt-60-10.csv","xx3.csv-testpatt-60-100.csv","xx3.csv-testpatt-60-20.csv","xx3.csv-testpatt-60-30.csv","xx3.csv-testpatt-60-40.csv","xx3.csv-testpatt-60-50.csv","xx3.csv-testpatt-60-60.csv","xx3.csv-testpatt-60-70.csv","xx3.csv-testpatt-60-80.csv","xx3.csv-testpatt-60-90.csv","xx3.csv-testpatt-70-10.csv","xx3.csv-testpatt-70-100.csv","xx3.csv-testpatt-70-20.csv","xx3.csv-testpatt-70-30.csv","xx3.csv-testpatt-70-40.csv","xx3.csv-testpatt-70-50.csv","xx3.csv-testpatt-70-60.csv","xx3.csv-testpatt-70-70.csv","xx3.csv-testpatt-70-80.csv","xx3.csv-testpatt-70-90.csv","xx3.csv-testpatt-80-10.csv","xx3.csv-testpatt-80-100.csv","xx3.csv-testpatt-80-20.csv","xx3.csv-testpatt-80-30.csv","xx3.csv-testpatt-80-40.csv","xx3.csv-testpatt-80-50.csv","xx3.csv-testpatt-80-60.csv","xx3.csv-testpatt-80-70.csv","xx3.csv-testpatt-80-80.csv","xx3.csv-testpatt-80-90.csv","xx3.csv-testpatt-90-10.csv","xx3.csv-testpatt-90-100.csv","xx3.csv-testpatt-90-20.csv","xx3.csv-testpatt-90-30.csv","xx3.csv-testpatt-90-40.csv","xx3.csv-testpatt-90-50.csv","xx3.csv-testpatt-90-60.csv","xx3.csv-testpatt-90-70.csv","xx3.csv-testpatt-90-80.csv","xx3.csv-testpatt-90-90.csv"],0,"normxx3.csv", "scaxx3.csv")
calcNormRuntime(["xx4.csv-testpatt-10-10.csv","xx4.csv-testpatt-10-100.csv","xx4.csv-testpatt-10-20.csv","xx4.csv-testpatt-10-30.csv","xx4.csv-testpatt-10-40.csv","xx4.csv-testpatt-10-50.csv","xx4.csv-testpatt-10-60.csv","xx4.csv-testpatt-10-70.csv","xx4.csv-testpatt-10-80.csv","xx4.csv-testpatt-10-90.csv","xx4.csv-testpatt-20-10.csv","xx4.csv-testpatt-20-100.csv","xx4.csv-testpatt-20-20.csv","xx4.csv-testpatt-20-30.csv","xx4.csv-testpatt-20-40.csv","xx4.csv-testpatt-20-50.csv","xx4.csv-testpatt-20-60.csv","xx4.csv-testpatt-20-70.csv","xx4.csv-testpatt-20-80.csv","xx4.csv-testpatt-20-90.csv","xx4.csv-testpatt-30-10.csv","xx4.csv-testpatt-30-100.csv","xx4.csv-testpatt-30-20.csv","xx4.csv-testpatt-30-30.csv","xx4.csv-testpatt-30-40.csv","xx4.csv-testpatt-30-50.csv","xx4.csv-testpatt-30-60.csv","xx4.csv-testpatt-30-70.csv","xx4.csv-testpatt-30-80.csv","xx4.csv-testpatt-30-90.csv","xx4.csv-testpatt-40-10.csv","xx4.csv-testpatt-40-100.csv","xx4.csv-testpatt-40-20.csv","xx4.csv-testpatt-40-30.csv","xx4.csv-testpatt-40-40.csv","xx4.csv-testpatt-40-50.csv","xx4.csv-testpatt-40-60.csv","xx4.csv-testpatt-40-70.csv","xx4.csv-testpatt-40-80.csv","xx4.csv-testpatt-40-90.csv","xx4.csv-testpatt-50-10.csv","xx4.csv-testpatt-50-100.csv","xx4.csv-testpatt-50-20.csv","xx4.csv-testpatt-50-30.csv","xx4.csv-testpatt-50-40.csv","xx4.csv-testpatt-50-50.csv","xx4.csv-testpatt-50-60.csv","xx4.csv-testpatt-50-70.csv","xx4.csv-testpatt-50-80.csv","xx4.csv-testpatt-50-90.csv","xx4.csv-testpatt-60-10.csv","xx4.csv-testpatt-60-100.csv","xx4.csv-testpatt-60-20.csv","xx4.csv-testpatt-60-30.csv","xx4.csv-testpatt-60-40.csv","xx4.csv-testpatt-60-50.csv","xx4.csv-testpatt-60-60.csv","xx4.csv-testpatt-60-70.csv","xx4.csv-testpatt-60-80.csv","xx4.csv-testpatt-60-90.csv","xx4.csv-testpatt-70-10.csv","xx4.csv-testpatt-70-100.csv","xx4.csv-testpatt-70-20.csv","xx4.csv-testpatt-70-30.csv","xx4.csv-testpatt-70-40.csv","xx4.csv-testpatt-70-50.csv","xx4.csv-testpatt-70-60.csv","xx4.csv-testpatt-70-70.csv","xx4.csv-testpatt-70-80.csv","xx4.csv-testpatt-70-90.csv","xx4.csv-testpatt-80-10.csv","xx4.csv-testpatt-80-100.csv","xx4.csv-testpatt-80-20.csv","xx4.csv-testpatt-80-30.csv","xx4.csv-testpatt-80-40.csv","xx4.csv-testpatt-80-50.csv","xx4.csv-testpatt-80-60.csv","xx4.csv-testpatt-80-70.csv","xx4.csv-testpatt-80-80.csv","xx4.csv-testpatt-80-90.csv","xx4.csv-testpatt-90-10.csv","xx4.csv-testpatt-90-100.csv","xx4.csv-testpatt-90-20.csv","xx4.csv-testpatt-90-30.csv","xx4.csv-testpatt-90-40.csv","xx4.csv-testpatt-90-50.csv","xx4.csv-testpatt-90-60.csv","xx4.csv-testpatt-90-70.csv","xx4.csv-testpatt-90-80.csv","xx4.csv-testpatt-90-90.csv"],0,"normxx4.csv", "scaxx4.csv")
calcNormRuntime(["xx5.csv-testpatt-10-10.csv","xx5.csv-testpatt-10-100.csv","xx5.csv-testpatt-10-20.csv","xx5.csv-testpatt-10-30.csv","xx5.csv-testpatt-10-40.csv","xx5.csv-testpatt-10-50.csv","xx5.csv-testpatt-10-60.csv","xx5.csv-testpatt-10-70.csv","xx5.csv-testpatt-10-80.csv","xx5.csv-testpatt-10-90.csv","xx5.csv-testpatt-20-10.csv","xx5.csv-testpatt-20-100.csv","xx5.csv-testpatt-20-20.csv","xx5.csv-testpatt-20-30.csv","xx5.csv-testpatt-20-40.csv","xx5.csv-testpatt-20-50.csv","xx5.csv-testpatt-20-60.csv","xx5.csv-testpatt-20-70.csv","xx5.csv-testpatt-20-80.csv","xx5.csv-testpatt-20-90.csv","xx5.csv-testpatt-30-10.csv","xx5.csv-testpatt-30-100.csv","xx5.csv-testpatt-30-20.csv","xx5.csv-testpatt-30-30.csv","xx5.csv-testpatt-30-40.csv","xx5.csv-testpatt-30-50.csv","xx5.csv-testpatt-30-60.csv","xx5.csv-testpatt-30-70.csv","xx5.csv-testpatt-30-80.csv","xx5.csv-testpatt-30-90.csv","xx5.csv-testpatt-40-10.csv","xx5.csv-testpatt-40-100.csv","xx5.csv-testpatt-40-20.csv","xx5.csv-testpatt-40-30.csv","xx5.csv-testpatt-40-40.csv","xx5.csv-testpatt-40-50.csv","xx5.csv-testpatt-40-60.csv","xx5.csv-testpatt-40-70.csv","xx5.csv-testpatt-40-80.csv","xx5.csv-testpatt-40-90.csv","xx5.csv-testpatt-50-10.csv","xx5.csv-testpatt-50-100.csv","xx5.csv-testpatt-50-20.csv","xx5.csv-testpatt-50-30.csv","xx5.csv-testpatt-50-40.csv","xx5.csv-testpatt-50-50.csv","xx5.csv-testpatt-50-60.csv","xx5.csv-testpatt-50-70.csv","xx5.csv-testpatt-50-80.csv","xx5.csv-testpatt-50-90.csv","xx5.csv-testpatt-60-10.csv","xx5.csv-testpatt-60-100.csv","xx5.csv-testpatt-60-20.csv","xx5.csv-testpatt-60-30.csv","xx5.csv-testpatt-60-40.csv","xx5.csv-testpatt-60-50.csv","xx5.csv-testpatt-60-60.csv","xx5.csv-testpatt-60-70.csv","xx5.csv-testpatt-60-80.csv","xx5.csv-testpatt-60-90.csv","xx5.csv-testpatt-70-10.csv","xx5.csv-testpatt-70-100.csv","xx5.csv-testpatt-70-20.csv","xx5.csv-testpatt-70-30.csv","xx5.csv-testpatt-70-40.csv","xx5.csv-testpatt-70-50.csv","xx5.csv-testpatt-70-60.csv","xx5.csv-testpatt-70-70.csv","xx5.csv-testpatt-70-80.csv","xx5.csv-testpatt-70-90.csv","xx5.csv-testpatt-80-10.csv","xx5.csv-testpatt-80-100.csv","xx5.csv-testpatt-80-20.csv","xx5.csv-testpatt-80-30.csv","xx5.csv-testpatt-80-40.csv","xx5.csv-testpatt-80-50.csv","xx5.csv-testpatt-80-60.csv","xx5.csv-testpatt-80-70.csv","xx5.csv-testpatt-80-80.csv","xx5.csv-testpatt-80-90.csv","xx5.csv-testpatt-90-10.csv","xx5.csv-testpatt-90-100.csv","xx5.csv-testpatt-90-20.csv","xx5.csv-testpatt-90-30.csv","xx5.csv-testpatt-90-40.csv","xx5.csv-testpatt-90-50.csv","xx5.csv-testpatt-90-60.csv","xx5.csv-testpatt-90-70.csv","xx5.csv-testpatt-90-80.csv","xx5.csv-testpatt-90-90.csv"],0,"normxx5.csv", "scaxx5.csv")
calcNormRuntime(["xx7.csv-testpatt-10-10.csv","xx7.csv-testpatt-10-100.csv","xx7.csv-testpatt-10-20.csv","xx7.csv-testpatt-10-30.csv","xx7.csv-testpatt-10-40.csv","xx7.csv-testpatt-10-50.csv","xx7.csv-testpatt-10-60.csv","xx7.csv-testpatt-10-70.csv","xx7.csv-testpatt-10-80.csv","xx7.csv-testpatt-10-90.csv","xx7.csv-testpatt-20-10.csv","xx7.csv-testpatt-20-100.csv","xx7.csv-testpatt-20-20.csv","xx7.csv-testpatt-20-30.csv","xx7.csv-testpatt-20-40.csv","xx7.csv-testpatt-20-50.csv","xx7.csv-testpatt-20-60.csv","xx7.csv-testpatt-20-70.csv","xx7.csv-testpatt-20-80.csv","xx7.csv-testpatt-20-90.csv","xx7.csv-testpatt-30-10.csv","xx7.csv-testpatt-30-100.csv","xx7.csv-testpatt-30-20.csv","xx7.csv-testpatt-30-30.csv","xx7.csv-testpatt-30-40.csv","xx7.csv-testpatt-30-50.csv","xx7.csv-testpatt-30-60.csv","xx7.csv-testpatt-30-70.csv","xx7.csv-testpatt-30-80.csv","xx7.csv-testpatt-30-90.csv","xx7.csv-testpatt-40-10.csv","xx7.csv-testpatt-40-100.csv","xx7.csv-testpatt-40-20.csv","xx7.csv-testpatt-40-30.csv","xx7.csv-testpatt-40-40.csv","xx7.csv-testpatt-40-50.csv","xx7.csv-testpatt-40-60.csv","xx7.csv-testpatt-40-70.csv","xx7.csv-testpatt-40-80.csv","xx7.csv-testpatt-40-90.csv","xx7.csv-testpatt-50-10.csv","xx7.csv-testpatt-50-100.csv","xx7.csv-testpatt-50-20.csv","xx7.csv-testpatt-50-30.csv","xx7.csv-testpatt-50-40.csv","xx7.csv-testpatt-50-50.csv","xx7.csv-testpatt-50-60.csv","xx7.csv-testpatt-50-70.csv","xx7.csv-testpatt-50-80.csv","xx7.csv-testpatt-50-90.csv","xx7.csv-testpatt-60-10.csv","xx7.csv-testpatt-60-100.csv","xx7.csv-testpatt-60-20.csv","xx7.csv-testpatt-60-30.csv","xx7.csv-testpatt-60-40.csv","xx7.csv-testpatt-60-50.csv","xx7.csv-testpatt-60-60.csv","xx7.csv-testpatt-60-70.csv","xx7.csv-testpatt-60-80.csv","xx7.csv-testpatt-60-90.csv","xx7.csv-testpatt-70-10.csv","xx7.csv-testpatt-70-100.csv","xx7.csv-testpatt-70-20.csv","xx7.csv-testpatt-70-30.csv","xx7.csv-testpatt-70-40.csv","xx7.csv-testpatt-70-50.csv","xx7.csv-testpatt-70-60.csv","xx7.csv-testpatt-70-70.csv","xx7.csv-testpatt-70-80.csv","xx7.csv-testpatt-70-90.csv","xx7.csv-testpatt-80-10.csv","xx7.csv-testpatt-80-100.csv","xx7.csv-testpatt-80-20.csv","xx7.csv-testpatt-80-30.csv","xx7.csv-testpatt-80-40.csv","xx7.csv-testpatt-80-50.csv","xx7.csv-testpatt-80-60.csv","xx7.csv-testpatt-80-70.csv","xx7.csv-testpatt-80-80.csv","xx7.csv-testpatt-80-90.csv","xx7.csv-testpatt-90-10.csv","xx7.csv-testpatt-90-100.csv","xx7.csv-testpatt-90-20.csv","xx7.csv-testpatt-90-30.csv","xx7.csv-testpatt-90-40.csv","xx7.csv-testpatt-90-50.csv","xx7.csv-testpatt-90-60.csv","xx7.csv-testpatt-90-70.csv","xx7.csv-testpatt-90-80.csv","xx7.csv-testpatt-90-90.csv"],0,"normxx7.csv", "scaxx7.csv")
