No BSD License  

Highlights from
Neuro-Fuzzy and Soft Computing

image thumbnail
gini(count)
function out = gini(count)
%GINI	Gini index function, for use as an impurity function in CART.

count = count(:);
out = 1 - sum((count/sum(count)).^2);


Contact us at files@mathworks.com