📄 psi.m
字号:
function p = Psi(xlist,mlist2,psi2)% function p = Psi(x,mlist2,psi2)%% Compute the Psi function used in density evolution% x = value% mlist2, psi2 -- list of points to interpolate (see densev1)% For large values, use the approximation from% [Chung,Richardson,Urbanke2001]% Copyright 2004 by Todd K. Moon% Permission is granted to use this program/data% for educational/research onlyp = [];for x = xlist if(x==0) p1 = 0; end s = sign(x); x = abs(x); if(x > mlist2(end)) % use function approximation p1 = 1-exp(-.4527*x^(.86) + .0218); else p1 = interp1(mlist2,psi2,x); % interpolate from the given data end p1 = p1*s; % correct the sign p = [p p1];end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -