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

SpearmansCorrelation fails when using NaturalRanking together with NaNStrategy.REMOVED

    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

              People

              • Assignee:
                Unassigned
                Reporter:
                tn Thomas Neidhart
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: