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

EmpiricalDistribution.inverseCumulativeProbability throws OutOfRangeException incorrectly

Rank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.6.1
    • 4.0
    • None
    • None

    Description

      For the specific data loaded (120 values)

      EmpiricalDistribution.inverseCumulativeProbability(0.717d) throws OutOfRangeException, which does not make sense.

       

      Exception in thread "main" org.apache.commons.math3.exception.OutOfRangeException: 1 out of [0, 1] rangeException in thread "main" org.apache.commons.math3.exception.OutOfRangeException: 1 out of [0, 1] range at org.apache.commons.math3.distribution.NormalDistribution.inverseCumulativeProbability(NormalDistribution.java:203) at org.apache.commons.math3.random.EmpiricalDistribution.inverseCumulativeProbability(EmpiricalDistribution.java:711) at stasiak.EmpiricalDistributionBugReproduction.main(EmpiricalDistributionBugReproduction.java:129)

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            astasiak Andrzej Stasiak
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment