%% Specify Options for Subtractive Clustering
% Load data set.

load clusterdemo.dat

%
% Specify the following clustering options:
% Squash factor of 2.0 - Only find clusters that are far from each other.
% Accept ratio 0.8 - Only accept data points with a strong potential for being cluster centers.
% Reject ratio of 0.7 - Reject data points if they do not have a strong potential for being cluster centers.
% Verbosity flag of 0 - Do not print progress information to the command window.

options = [2.0 0.8 0.7 0];

%
% Find cluster centers, using a different range of influence for each dimension and the specified options.

C = subclust(clusterdemo,[0.5 0.25 0.3],'Options',options);

% Copyright 2012 The MathWorks, Inc.