quickselectFSnw extends quickselectFSw to negative weights
quickselectFSnw introduces the approach of Arce (1998) in quickselectFSw, to cope with possible negative weights in array W. The input/output arguments are the same of quickselectFSw. If the weights are all positive, the overhead for the extra checks required by Arce (1998) is almost negligible, especially when the sample size is large (~10^6).
Arce, G.R. (1998), A general weighted median filter structure admitting negative weights, "IEEE Transactions on Signal Processing, doi:
10.1109/78.735296", vol. 46, no. 12, pp. 3195-3205.
Arce, G.R. (2002), Recursive Weighted Median Filters Admitting Negative Weights and Their Optimization, IEEE Transactions on Signal Processing, Vol. 48, No. 3, pp. 768-779.
Azzini, I., Perrotta, D. and Torti, F. (2023), A practically efficient fixed-pivot selection algorithm and its extensible MATLAB suite, "arXiv, stat.ME, eprint 2302.05705"