fxy0.m
来自「压缩文件中是Error Correction Coding - Mathemat」· M 代码 · 共 19 行
M
19 行
function f = fxy0(x,ysigma2)% compute f(x|y)% the value of x is a 0 (meaning a -1 is sent)% or a 1 (meaning a 1 is sent)% The argument ysigma2 is an array of "auxiliary" values, % ysigma2(1) = y value,% ysigma2(2) = sigma^2% ysigma2(3) = a% Copyright 2004 by Todd K. Moon% Permission is granted to use this program/data% for educational/research onlyy = ysigma2(1);sigma2 = ysigma2(2);a = ysigma2(3);f = 1/(1+exp(-2*y*a*(2*x-1)/sigma2));
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?