function [ bestx ] = calculateEntropyForEachClass( scores,labels )
% Hassan Nahas
%This function calculates the entropy for each choice of x and finds the x
%that yields the biggest information gain.

    P_score = repmat([sum(labels),length(labels) - sum(labels)],16,1,1);

    H_g =EntropyOfSet(P_score(:,1),P_score(:,2)) -EntropyOfSet(scores(:,1,1),scores(:,1,2))-EntropyOfSet(scores(:,2,1),scores(:,2,2))-EntropyOfSet(scores(:,3,1),scores(:,3,2));
    [~,bestx] = max(H_g);

end

