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

📄 marginal.m

📁 Non-parametric density estimation
💻 M
字号:
function p = marginal(dens,ind)%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% p = marginal(p2,ind) -- find the marginal of a kde on the given indices%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (C) 2003 Alexander Ihler; distributable under GPL -- see README.txt  pts = getPoints(dens);  if (size(dens.bandwidth,2) > 2*dens.N)    sig = getBW(dens,1:getNpts(dens));   % Many different BWs?  else                                   % Or all BWs the same    sig = getBW(dens,1);  end;  wts = getWeights(dens);  p = kde(pts(ind,:),sig(ind,:),wts,getType(dens));

⌨️ 快捷键说明

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