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

📄 init_coeffs.m

📁 可以进行曲线回归拟合算法的四参数算法。函数为 y = (a-d)/(1+(x/c)^b) +d . ec50.m 为其主要函数
💻 M
字号:
function init_params = init_coeffs(x,y)
% INIT_COEFFS Function to generate the initial parameters for the 4
% parameter dose response curve.
% Requires an array of doses and an array of responses
% This function is used by sigmoid.m and ec50.m
%
% Copyright 2004 Carlos Evangelista 
% send comments to CCEvangelista@aol.com
% Version 1.0    01/07/2004

parms=ones(1,4);
parms(1)=min(y);
parms(2)=max(y);
parms(3)=(min(x)+max(x))/2;
sizey=size(y);
sizex=size(x);
if (y(1)-y(sizey))./(x(2)-x(sizex))>0
    parms(4)=(y(1)-y(sizey))./(x(2)-x(sizex));
else
    parms(4)=1;
end
init_params=parms;

⌨️ 快捷键说明

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