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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Operating System: Windows 2000
      Platform: PC

    • Bugzilla Id:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: