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

NaN transformation based on NaNStrategy

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.3
    • Fix Version/s: 3.4
    • Labels:
      None

      Description

      The NaNs in a double array may need to be transformed to either +/- Infinity or removed before processing them(say such as in percentile).
      So basically from documenting angle; we will need to action as follows:
      Whenever a double quantity is a NaN (say in an array); based on the NanStrategy; it needs to be treated as follows before processing:
      a) MAXIMAL -> replace with +infinity
      b) MINIMAL -> replace with -Inifinity
      c) REMOVED -> just remove it
      d) FIXED -> Leave it as it is
      e) FAILED -> throw a NaN exception
      Can this documentation be specifically added to NaNStrategy and perhaps a substitution value also can be added to enforce the documentation.

      In addition i will also submit a patch for a simple NaNTransformer implementation.

        Attachments

        1. math-1132.patch
          25 kB
          Venkatesha Murthy TS

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vmurthy Venkatesha Murthy TS
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: