added the ability to limit the samples to the specified ids to
plotInformationGainDistribution