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

SpearmansCorrelation fails when using NaturalRanking together with NaNStrategy.REMOVED

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.2
    • Labels:
      None

      Description

      As reported by Martin Rosellen on the users mailinglist:

      Using a NaturalRanking with a REMOVED NaNStrategy can result in an exception when NaN are contained in the input arrays.

      The current implementation just removes the NaN values where they occur, without taken care to remove the corresponding values in the other array.

        Attachments

        1. MATH-891.patch
          8 kB
          Thomas Neidhart

        Issue Links

          Activity

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

            People

            • Assignee:
              Unassigned
              Reporter:
              tn Thomas Neidhart

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment