⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 eql_root.m

📁 实现PET/SPECT 幻影图像regression的matlab源代码 algorithms for Poisson emission tomography PET/SPECT/ Poisson
💻 M
字号:
 function x = eql_root(a, b, c)%function x = eql_root(a, b, c)% Numerically stable method for computing the positive root% of the quadratic polynomial: -ax^2 -2bx + c, with a >= 0.% This polynomial arises in quadratically-penalized likelihood% methods for the Poisson emission image reconstruction problem.%% Copyright Apr. 2000, Jeff Fessler, The University of Michiganif nargin < 3, help(mfilename), error(mfilename), endif any(a < 0), error 'need a > 0', endx = zeros(size(a));j = a == 0;x(j) = c(j) ./ b(j) / 2;		% 1st-order casedet = sqrt(b.^2 + a .* c);		% determinant / 2j = (a > 0) & (b > 0);x(j) = c(j) ./ (det(j) + b(j));j = (a > 0) & (b <= 0);x(j) = (det(j) - b(j)) ./ a(j);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -