a numeric two-column matrix is returned with the first columnn being
time (s) and the second colum being the zero-crossing rate (no scale) if wl is not NULL.
Details
The zero-crossing rate is computed according to:
$$zcr = \frac{1}{2 \times N} \sum_{t=0}^{N-1} |sgn[x(t+1)] -sgn[x(t)]|$$
with:
N the length of the signal x
and where:
$$sgn[x(t)] = 1$$
if $$x(t) \geq 0$$
and $$sgn[x(t)] = -1$$
if $$x(t) < 0$$
# NOT RUN {data(tico)
## a single value for the complete signal, no plotzcr(tico, wl=NULL)
## a series of values computed for a sliding window of 512 samples, plotzcr(tico)
# }