Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-448

Frequency get number of unique values

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.2
    • None
    • None

    Description

      It is often useful to know the number of unique elements in a frequency table. Could you add a simple method that returns the size of freqTable. It seems like it would be as simple as:

      public int getUniqueCount(){
           return freqTable.size();
      }
      

      Given that freqTable is private, there is no way to extend the class and add this method. Thanks!

      Attachments

        1. MATH-448.patch
          0.7 kB
          Patrick Meyer
        2. MATH-448.patch
          0.7 kB
          Patrick Meyer

        Activity

          People

            Unassigned Unassigned
            meyerjp Patrick Meyer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.25h
                0.25h
                Remaining:
                Remaining Estimate - 0.25h
                0.25h
                Logged:
                Time Spent - Not Specified
                Not Specified