def RMS_energy ( frames ) : f = frames . flatten ( ) return N . sqrt ( N . mean ( f * f ) )
python frame based energy
Computes the RMS energy of frames
def RMS_energy(frames):
    """Computes the RMS energy of frames"""
    f = frames.flatten()
    return N.sqrt(N.mean(f * f))