OptimalSamplingMultiSubsetsFromSameSet ====================================== .. code-block:: none % get K subsets of gradients from one given gradient set, such that % gradients in each subset are evenly distributed. % % USAGE: % [gradCell,grb_result,indexMatrix] = OptimalSamplingMultiSubsetsFromSameSet(gradAll, param, grbParam) % % INPUT % gradAll : Nx3 gradient matrix, where each row is a point in sphere. % param.numSamples : Kx1 or 1xK vector which gives number of samples in K subsets % param.w : weight for single shell term. 0 %