You can replace these values ββwith a small value, but with the ability to log into the system (say, 40 dB lower):
minb = x-2*std_x;
mask = (minb <= 0);
minb(mask) = x/1e4;
... use 10*log10(minb) instead
Or just a threshold to some minimum:
K = min(x) / 1e4; % so that K is 40 db below the smallest x
... use 10*log10(max(K, x-2*std_x)) instead.
Or similar things.
EDIT to summarize comments and further thoughts:
, , . / (, x% , ). , , , . , , , +/- K * std_deviation, .
cdf F (x), "" (.. ), , ,
F '(x1) = F' (x2), F (x2) - F (x1) = , x1 <= mode <= x2.
+/- K std_deviation , , , , , .