Skip to content

Commit 0f1e98b

Browse files
committed
fixed error introduced in last commit addressing issue #6
1 parent 4187283 commit 0f1e98b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/smoothmedian.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@
6262
// [1] Brown, Hall and Young (2001) The smoothed median and the
6363
// bootstrap. Biometrika 88(2):519-534
6464
//
65+
// Requirements: Compilation requires C++98
66+
//
6567
// Author: Andrew Charles Penn (2022)
6668

6769

@@ -168,7 +170,7 @@ void mexFunction (int nlhs, mxArray* plhs[],
168170
l = xvec.size ();
169171
if (l == 0) {
170172
M[k] = NAN;
171-
break;
173+
continue;
172174
}
173175

174176
// Set the (ordinary) median as the starting value

0 commit comments

Comments
 (0)