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

Frequency get number of unique values

Rank to TopRank to BottomVotersWatch issueWatchersConvert to sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2
    • Labels:
      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

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

            • Assignee:
              Unassigned
              Reporter:
              meyerjp Patrick Meyer

              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

                  Issue deployment