You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Luc Maisonobe (JIRA)" <ji...@apache.org> on 2013/03/06 11:32:13 UTC
[jira] [Resolved] (MATH-939) stat.correlation.Covariance should
allow one-column matrices
[ https://issues.apache.org/jira/browse/MATH-939?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Luc Maisonobe resolved MATH-939.
--------------------------------
Resolution: Fixed
Fix Version/s: 3.2
Fixed in subversion repository as of r1453271.
The patch has been applied with minor changes (a test case with a nominal value has been added).
Thanks for reporting the issue and providing a patch.
> stat.correlation.Covariance should allow one-column matrices
> ------------------------------------------------------------
>
> Key: MATH-939
> URL: https://issues.apache.org/jira/browse/MATH-939
> Project: Commons Math
> Issue Type: Bug
> Reporter: Piotr Wydrych
> Fix For: 3.2
>
> Attachments: covariance.patch
>
>
> Currently (rev 1453206), passing 1-by-M matrix to the Covariance constructor throws IllegalArgumentException. For consistency, the Covariance class should work for a single-column matrix (i.e., for a N-dimensional random variable with N=1) and it should return 1-by-1 covariance matrix with the variable's variance in its only element.
--
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