Mercurial > hg > smallbox
view toolboxes/alps/ALPS/thresh.m @ 167:8324c7ea6602 danieleb
Added symmetric de-correlation function, modified target de-correlation in test function.
author | Daniele Barchiesi <daniele.barchiesi@eecs.qmul.ac.uk> |
---|---|
date | Tue, 20 Sep 2011 14:27:14 +0100 |
parents | 0de08f68256b |
children |
line wrap: on
line source
function x= thresh(x, K) [~, ind] = sort(abs(x), 'descend'); x(ind(K+1:end))= 0;