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

Impossible NotStrictlyPositiveException after getStandardDeviation()

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: Duplicate
    • Affects Version/s: 3.2
    • Fix Version/s: 3.5
    • Labels:
      None
    • Environment:

      Windows 7, Java 1.8

      Description

      org.apache.commons.math3.random.EmpiricalDistribution.density() calls
      EmpiricalDistribution.getKernel which calls
      bStats.getStandardDeviation() – bStats is SummaryStatistics
      and return result caused NotStrictlyPositiveException: standard deviation (0)
      in new NormalDistribution(randomData.getRandomGenerator(),
      bStats.getMean(), bStats.getStandardDeviation(),
      NormalDistribution.DEFAULT_INVERSE_ABSOLUTE_ACCURACY);

      As I understand, it shouldn't be so by contract of SummaryStatistics.

        Attachments

        Issue Links

          Activity

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

            People

            • Assignee:
              Unassigned
              Reporter:
              Sklavit Sergii Nechuiviter

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment