Uploaded image for project: 'Mahout'
  1. Mahout
  2. MAHOUT-750

IndexOutOfBoundsException within sort method of OnlineSummarizer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 0.5
    • 0.6
    • classic
    • None

    Description

      When the total number of samples added to OnlineSummarizer is less than 100 , then sort() will thrown this :

      private void sort() {
      if (!sorted && starter != null)

      { starter.sortFromTo(0, 99); sorted = true; }

      }

      And I think it should be
      private void sort() {
      if (!sorted && starter != null)

      { starter.sortFromTo(0, Math.min(starter.size() - 1, 99)); sorted = true; }

      }

      Attachments

        Activity

          People

            srowen Sean R. Owen
            xiaobogu XiaoboGu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: