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

📄 ufunction.m

📁 Continuous Profile Models (CPM) Matlab Toolbox.
💻 M
字号:
function [l d] = uFunction(u,A,B,C,G,...    gammaSum5,gammaSum6,scalesExpRep,sig2inv,kk,zPhi)%% gammaSum5 and gammaSum5 are for all kk and bb%% the latter is required, and the former cannot hurt.%% parts with no u_k dependency will drop out.%% this is for one single observed trace, kkif u<eps    f=realmax;    d=realmax;    return;end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% relevant portion of the log likelihoodtmpU = G.u;tmpU(kk)=u;l = getPartialLogLikeForU(scalesExpRep,G,...        gammaSum5,gammaSum6,tmpU,sig2inv,zPhi);       %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% derivatived = -u*B + C - (log(u)/u)*A;%% this is the other term I forgot from the log normal!!! (Aug 21, 2006)d = d - 1/u;%% want negative of these because using fminuncd=-d;l=-l;%disp('-------------')%[num2str(u,10) ' ' num2str(d,10) ' ' num2str(l,10)]return;

⌨️ 快捷键说明

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