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

Gilles resolved MATH-929.
-------------------------

    Resolution: Fixed

Corrected in revision 1433367.

Thanks a lot for the report and fix!

A few weeks, Thomas wondered why using "0.5 * x" instead of "x / 2". That's an 
excellent reason... Unfortunately that instance slipped through my scanner :(.
                
> MultivariateNormalDistribution.density(double[]) returns wrong value when the 
> dimension is odd
> ----------------------------------------------------------------------------------------------
>
>                 Key: MATH-929
>                 URL: https://issues.apache.org/jira/browse/MATH-929
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.1.1
>            Reporter: Piotr Wydrych
>            Priority: Critical
>             Fix For: 3.2
>
>         Attachments: MultivariateNormalDistribution.java.patch
>
>
> To reproduce:
> {code}
> Assert.assertEquals(0.398942280401433, new MultivariateNormalDistribution(new 
> double[]{0}, new double[][]{{1}}).density(new double[]{0}), 1e-15);
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to