def __init__(self, dataSample):
    variance = round(sum(dataSample) / len(dataSample))
if variance == 0:
    self._norm = 1.0
else:
    self._norm = 1.0 / (2 * variance)
Suggestions on how to speed up a distance calculation