1 %> @brief Weighted Sub-Sampling
7 %> weights per observation
11 methods(Access=
protected)
12 %> Returns a 2D cell: rows are pieces, columns are bites, elements are indexes
13 function idxs = get_idxs_new(o)
14 idxs = cell(o.no_pieces, 1);
17 no_units_sel = o.pvt_no_units_sel(i, 1); %> row vector containing number of units for each bite of the piece
27 %> Parameter validation
28 function o = do_assert(o)
29 if strcmp(o.type, 'fixed')
30 if numel(o.bites_fixed) > 1
31 irverbose('INFO: Only one ''bite'' will be used (the bites_fixed property has more than one element)', 2);
35 irverbose('INFO: Only one ''bite'' will be used (the bites property has more than one element)', 2);
39 irerror('Working with groups not supported!');
47 o.classtitle = 'Weighted Sub-sampling';
function irverbose(in s, in level)
function weightedsubsampling(in no_sel, in weights)
Random Sub-sampling base class.