def calc_measurement_error(self, tangents):
if len(tangents) < <NUM_LIT:2>:<EOL><INDENT>return <NUM_LIT:0.0><EOL><DEDENT>avg_tan = float(sum(tangents) / len(tangents))<EOL>numerator = float()<EOL>for i in tangents:<EOL><INDENT>numerator += (i - avg_tan) * (i - avg_tan)<EOL><DEDENT>return math.sqrt(numerator / len(tangents) / (len(tangents) - <NUM_LIT:1>))<EOL>
formula for measurement error
sqrt ( (sum(1, n, (k_i - <k>)**2) / (n*(n-1)))