def stEnergy(frame):
 return (numpy.sum((frame ** 2)) / numpy.float64(len(frame)))

def stEnergy ( frame ) : return ( numpy . sum ( ( frame ** 2 ) ) / numpy . float64 ( len ( frame ) ) )
computes signal energy of frame .