
function [wt, thr] = oracle(v,w)

% usage: [wt, thr] = oracle(v,w)
% w = noisy coefficients;
% v = uncorrupted coefficients: must have same sizes

sig = sqrt(var2(w-v));
wt = w.*(abs(v)>sig);
thr = sig;
