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

getKernel fails for buckets with only multiple instances of the same value in random.EmpiricalDistribution

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4, 3.4.1
    • Fix Version/s: 4.0, 3.5
    • Labels:
      None

      Description

      After loading a set of values into an EmpericalDistribution, assume that there's a case where a single bin ONLY contains multiple instances of the same value. In this case the standard deviation will equal zero. This will fail when getKernel attempts to create a NormalDistribution. The other case where stddev=0 is when there is only a single value in the bin, and this is handled by returning a ConstantRealDistribution rather than a NormalDistrbution.

      See: https://issues.apache.org/jira/browse/MATH-984

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kdkavanagh Kyle Kavanagh
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: