You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Steve Appling (Updated) (JIRA)" <ji...@apache.org> on 2012/02/18 16:10:59 UTC

[jira] [Updated] (MATH-747) Several Constructors for PoissonDistributionImpl are broken

     [ https://issues.apache.org/jira/browse/MATH-747?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Appling updated MATH-747:
-------------------------------

    Description: 
Only the constructor PoissonDistributionImpl(double) seems to actually work.  All of the others cause a NullPointerException.  The working one creates a default NormalDistribution, but all of the others just leave the member "normal" set to null and cause an NPE in the constructor.  

I can't even find a work around to construct a PoissonDistributionImpl with both a specified mean and an epsilon, since there is no way to set epsilon after creation and the constructor PoissonDistributionImpl(double p, double epsilon) does not work.

  was:
Only the constructor PoissonDistributionImpl(double) seems to actually work.  All of the others cause a NullPointeException.  The working one creates a default NormalDistribution, but all of the others just leave the member "normal" set to null and cause an NPE in the constructor.  

I can't even find a work around to construct a PoissonDistributionImpl with both a specified mean and an epsilon, since there is no way to set epsilon after creation and the constructor PoissonDistributionImpl(double p, double epsilon) does not work.

    
> Several Constructors for PoissonDistributionImpl are broken
> -----------------------------------------------------------
>
>                 Key: MATH-747
>                 URL: https://issues.apache.org/jira/browse/MATH-747
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 2.2
>            Reporter: Steve Appling
>            Priority: Critical
>             Fix For: 2.2.1
>
>
> Only the constructor PoissonDistributionImpl(double) seems to actually work.  All of the others cause a NullPointerException.  The working one creates a default NormalDistribution, but all of the others just leave the member "normal" set to null and cause an NPE in the constructor.  
> I can't even find a work around to construct a PoissonDistributionImpl with both a specified mean and an epsilon, since there is no way to set epsilon after creation and the constructor PoissonDistributionImpl(double p, double epsilon) does not work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira