Class RandomDataHistogram


  • public class RandomDataHistogram
    extends Object
    The type Random data histogram.
    • Constructor Detail

      • RandomDataHistogram

        public RandomDataHistogram​(int bucketCnt)
        Instantiates a new Random data histogram.
        Parameters:
        bucketCnt - the bucket cnt
    • Method Detail

      • print

        public String print​(List<Tracker> entries,
                            String label)
        Generate random data historgram report.
        Parameters:
        entries - the list of Trackers maintaining the counts
        label - the label for counted objects
        Returns:
        the string
      • print

        public String print​(List<Tracker> entries,
                            boolean countsComparator,
                            String label)
        Generate random data historgram report.
        Parameters:
        entries - the entries
        countsComparator - the counts comparator
        label - the label
        Returns:
        the string
      • bucket

        protected static List<RandomDataHistogram.Bucket> bucket​(int bucketCnt,
                                                                 List<Tracker> entries)
        Bucket list.
        Parameters:
        bucketCnt - the bucket cnt
        entries - the list of Trackers maintaining the counts
        Returns:
        the list