find a spike in a given dataset
[sim, index, FoundSpike, Mean, Sigma, Distance, Val] = ld_vectorFindSpike(sim, events, in, SignificanceFactor, NskipLeft, NskipRight, vecsize)
Steps performed:
1) The maximum of abs(in) is determined as well as its position
2) The variance (sigma^2) of in is calculated except for the values surounded by
the maxmimum. This range is described by NskipLeft and NskipRight
3) The maximum is compared to the standard deviation (sigma); also the
signal's mean value is compensated herein.
4) If the intensity of the maximum is significantly higher than the maximum's
intensity, FoundSpike is set to 1
in *+(vecsize)
SignificanceFactor - Used for the comparison Distance > SignificanceFactor * sigma,
index *(INT32) - the index starting at 1, where the spike was found
FoundSpike *(INT32) - 1 if a spike has been found. 0 otherwise