Terry, return math.sqrt(sum([h*i*i for i,h in enumerate(histogram)]) / self.Area())
Ran at the same speed as my 'fast' version and without the square brackets was slower. Thanks, Keir -- http://mail.python.org/mailman/listinfo/python-list
Terry, return math.sqrt(sum([h*i*i for i,h in enumerate(histogram)]) / self.Area())
Ran at the same speed as my 'fast' version and without the square brackets was slower. Thanks, Keir -- http://mail.python.org/mailman/listinfo/python-list