function [ out1, out2 ] = pcor_sigs( sig1, sig2, g )
% function [ out1, out2 ] = pcor_sigs( sig1, sig2, g )
%   Given two supposedly uncorrelated input signals, sig1 and sig2,
%   produces a pair of partially correlated output signals, out1 and out2,
%   with a correlation specified by parameter g (a predictor of their correlation).

sigsum = .7071*g* (sig1 + sig2);
out1 = (1-g) * sig1 + sigsum;
out2 = (1-g) * sig2 + sigsum;

end

