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

[math] RunTimeException in EmpiricalDistributionImpl.load(double[])

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • Operating System: Windows 2000
      Platform: PC

    • 36450

    Description

      Overview Description:

      I get the following RunTimeException when loading data into an instance of
      EmpiricalDistributionImpl:

      java.lang.RuntimeException: Index: 1000, Size: 1000
      at org.apache.commons.math.random.EmpiricalDistributionImpl.load
      (EmpiricalDistributionImpl.java:111)
      at BreakEmpiricalDistributionImpl.main(BreakEmpiricalDistributio
      nImpl.java:7)
      Exception in thread "main"

      Here is a small program to reproduce the problem:

      import org.apache.commons.math.random.EmpiricalDistributionImpl;

      public class BreakEmpiricalDistributionImpl {

      public static void main(String[] args) {
      double[] x = new double[]

      {9474.94326071674, 2080107.8865462579}

      ;
      new EmpiricalDistributionImpl().load;
      }

      }

      Build Date & Platform:

      Build 2005-08-31 on Windows 2000 with Sun JDK 1.4.2_09

      Additional Builds and Platforms:

      Attachments

        Activity

          People

            Unassigned Unassigned
            keithmcdonald@sympatico.ca Keith McDonald
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: