[Kst] branches/work/kst/1.6/kst/src/plugins/despike
Andrew Walker
arwalker at sumusltd.com
Tue Jan 22 19:54:19 CET 2008
SVN commit 764863 by arwalker:
format changes
M +2 -2 despike.cpp
--- branches/work/kst/1.6/kst/src/plugins/despike/despike.cpp #764862:764863
@@ -39,7 +39,7 @@
int spikeStart = -1;
int border = dx*2;
- if (N<1 || cut<=0 || dx<1 || dx>N/2) {
+ if (N < 1 || cut <= 0.0 || dx < 1 || dx > N/2) {
return -1;
}
@@ -69,7 +69,7 @@
if (spikeStart >= 0) {
i += 4*border-1;
if (i >= N) {
- i=N-1;
+ i = N-1;
}
for (int j=spikeStart; j<=i; j++) {
Y[j] = lastGood;
More information about the Kst
mailing list