Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (10 sloc) 304 Bytes
function y=EmulatePrecipitateDistribution(x,mode,forwardWidth,tail)
yG =pdf('normal',x,mode,forwardWidth);
yD = max(yG)*exp(-x./(tail/-log(0.05)));
mask = x>(mode);
y=yG;
startI = find(mask,1,'first');
y(mask)=yD(1:end-startI+1);
A=trapz(x,y);
y=y./A;
end
Something went wrong with that request. Please try again.