commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilles Sadowski <gil...@harfang.homelinux.org>
Subject Re: [MATH]: question about HypergeometricDistributionImpl class
Date Thu, 11 Aug 2011 20:45:27 GMT
Hello.

> I am using the commons-Math library. I have used the
> HypergeometricDistributionImpl. I used upperCumulativeProbability method. I
> have got some probability greater that 1 which is impossible.
> I would appreciate if you can help me to know why it happens.
> 
> Thanks, in advance, for your kind help.
> 
> 
> //********************************************************
> //My method to compute pvalue
>    public static double HyperDist(int allgenes, int numberOfgenesinpathway,
> int numberofxoy , int commongene){
>        HypergeometricDistributionImpl hyper = new
> HypergeometricDistributionImpl(allgenes, numberOfgenesinpathway,
> numberofxoy) ;
>        return hyper.upperCumulativeProbability(commongene);
>     }
> 

Could you please provide a minimal, but working, unit test whose failure
would show the problem you encounter?
Also please specify which version of Commons Math you use.


Thanks,
Gilles

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


Mime
View raw message