stupid covariance function
[sim, out] = ld_simplecovar(sim, events, in, shape, vecsize)
in *+(vecsize) - vector signal
shape - vector to compare the input with
out *+(length(shape)) - output