the function which calculates the enrgy of the signal (energ) and the zero crossings ratio (rtz)