% 150525: Reza Farrahi Moghaddam (firstname.lastname@example.org) (May 25th, 2015)
% Optimal Sub-sampled Population with Max Expansion and Min Projection Error
% This function searches for a subsample of an input population that has
% maximum pair-distance in all neighborhoods. Also, it minimizes the
% projection error of the input population on the output subsampled
% population. The size of a neighborhood should be higher than 1.
% [spectra_2D_Sampled, spectra_2D_Sampled_index, spectra_2D_Sampled_allProjected_global] = Subsample_MaxNeighborDistance_R(spectra_2D, subsample_size, neighborhood_size)
% spectra_2D: Input population
% subsample_size: The size of subsampled required
% neighborhood_size: Size of neighborhood (including the center) used in calculations
% spectra_2D_Sampled: Output subsampled population
% spectra_2D_Sampled_index: Indices of the output subsampled population in the input population
% spectra_2D_Sampled_allProjected_global: 1-NN projection of the input population onto the output subsampled population
Reza Farrahi Moghaddam (2020). Optimal Sub-sampled Population with Max Expansion and Min Projection Error (https://www.mathworks.com/matlabcentral/fileexchange/50993-optimal-sub-sampled-population-with-max-expansion-and-min-projection-error), MATLAB Central File Exchange. Retrieved .
Updated and bug fixed.
Missing file added.