def calculateSimularity(data1, data2):
    """
    On a scale of 0 to 1 returns how simular the two datasets are

    INPUTS
    -------
    data1       :   list of numbers - ranging from 0 - 1
    data2       :   list of numbers - ranging from 0 - 1

    OUTPUTS
    -------
    simularity :    how similar are the two datasets?
                    0 is totally different 1 is the same data

    """
    total = 0
    if len(data1) != len(data2):
        return 0
    for i, d  in enumerate(data1):
        total += abs(d-data2[i])

    return total/len(data1)