Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function [ylist, p] = vb_find_hist_threshold(h,y,plist) 0002 % 0003 % Copyright (C) 2011, ATR All Rights Reserved. 0004 % License : New BSD License(see VBMEG_LICENSE.txt) 0005 0006 N = length(plist); 0007 p = h/sum(h); 0008 psum = cumsum(p); 0009 0010 ylist = zeros(1,N); 0011 0012 for n=1:N 0013 ix = find( psum >= (1 - plist(n)), 1); 0014 ylist(n) = y(ix); 0015 end