You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2005/08/31 22:17:34 UTC

DO NOT REPLY [Bug 36450] New: - RunTimeException in EmpiricalDistributionImpl.load(double[])

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36450>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36450

           Summary: RunTimeException in
                    EmpiricalDistributionImpl.load(double[])
           Product: Commons
           Version: Nightly Builds
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Math
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: keithmcdonald@sympatico.ca


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(x);
  }
  
}

Build Date & Platform: 

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

    Additional Builds and Platforms:

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org