#NEWLINE# def test_gauss_suff_stats( ) : #NEWLINE# #INDENT# big = 400 #NEWLINE# small = 1e-07 #NEWLINE# data = [ ( big - small ) , big , ( big + small ) ] #NEWLINE# true_sigma = math . sqrt ( ( ( 2 * ( mean ** 2 ) ) / 3 ) ) #NEWLINE# ( ct , mean , sigma ) = stats . gauss_suff_stats ( data ) #NEWLINE# assert ( ct == 3 ) #NEWLINE# assert ( mean == big ) #NEWLINE# assert ( relerr ( true_sigma , sigma ) < 1e-05 )