data= fltarr(1000000)
data[::2]= 1  # array is now [1,0,1,0,...]

ah = autoHistogram(data)

print ah
from org.das2.qds.util import AutoHistogram

moments= AutoHistogram.moments(ah)
print moments.property( "stddev" ) 
