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

Impossible NotStrictlyPositiveException after getStandardDeviation()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.2
    • 3.5
    • None
    • None
    • 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

            People

              Unassigned Unassigned
              Sklavit Sergii Nechuiviter
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: