classFuzzify

Initialize fuzzy membership grades for a dataset

Contents

Syntax

Description

fuzzyClass = classFuzzify(DS, k) returns the fuzzy membership grades of each sample data point:

References

  1. J. M. Keller, M. R. Gray, and J. A. Givens, Jr., "A Fuzzy K-Nearest Neighbor Algorithm", IEEE Transactions on Systems, Man, and Cybernetics, Vol. 15, No. 4, pp. 580-585, 1985.

Example

DS=prData('3classes');
dsScatterPlot(DS);
line([0 1], [0 1], 'linestyle', ':');		% Plot boundary
line([0.5 1], [0.5 0], 'linestyle', ':');	% Plot boundary
k=5;
fuzzyClass = classFuzzify(DS, k);
index=find(sum(fuzzyClass.^0.5)~=1);
line(DS.input(1,index), DS.input(2,index), 'linestyle', 'none', 'marker', 'o', 'color', 'k');
title('Circled data points have fuzzy membership grades.');

See Also

knncFuzzy.


Top page   Next: circleFitValidate.m   Prev:classifierEval.m