getweights.m

来自「Non-parametric density estimation」· M 代码 · 共 14 行

M
14
字号
function wts = getWeights(dens,ind)%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% getWeights(P,ind)%  returns the weights of the nonparametric density estimate P's kernels%  specified by ind.%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (C) 2003 Alexander Ihler; distributable under GPL -- see README.txt  if (nargin < 2) ind=1:dens.N; end;  wts(double(dens.perm(dens.N + (1:dens.N)))+1) = dens.weights(dens.N + (1:dens.N));  wts = wts(:,ind);%  wts = dens.weights(:,dens.N + ind);

⌨️ 快捷键说明

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