[
https://issues.apache.org/jira/browse/MATH-858?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13451364#comment-13451364
]
Massimiliano Dongiovanni commented on MATH-858:
-----------------------------------------------
Yes sorry, the right line of code is this:
{noformat}RealMatrix correlationMatrix = (new
PearsonsCorrelation()).computeCorrelationMatrix(data);{noformat}
When I try to access to getRowDimension() method, the exception occurs.
I'm working on Grails 2.10 platform with apache commons math3 3.0 libraries.
After some other tests, it seems to be a spring/groovy trouble. Error messages
comes from Groovy compiler, which raise an
org.codehaus.groovy.runtime.InvokerInvocationException.
So it's not a commons math bug. Really thanks for quick response Gilles, and
sorry for this _off topic_ issue.
I'm going to close this issue.
> BlockRealMatrix java.beans.IntrospectionException
> -------------------------------------------------
>
> Key: MATH-858
> URL: https://issues.apache.org/jira/browse/MATH-858
> Project: Commons Math
> Issue Type: Bug
> Affects Versions: 3.0
> Environment: MacOSX 10.8.1 (Macbook Air 4Gb RAM)- IntelliJ IDEA 11 -
> Grails 2.10
> Reporter: Massimiliano Dongiovanni
> Labels: BlockRealMatrix
>
> When I try to read properties (like getColumnDimension) of an instance of
> class BlockRealMatrix (org.apache.commons.math3.linear.BlockRealMatrix),
> system raise this exception:
> Class - java.beans.IntrospectionException
> Message - type mismatch between indexed read and indexed write methods:
> columnMatrix
> =================
> Code
> import org.apache.commons.math3.stat.correlation.PearsonsCorrelation
> import strategoianalysis.util.math.matrix.MatrixStatutils
> import org.apache.commons.math3.linear.*
> class JohnsonRWAController {
> private double[] computeRWA(double[][] data) {
> BlockRealMatrix correlationMatrix = new
> PearsonsCorrelation().computeCorrelationMatrix(data)
> int rowDim = correlationMatrix.getRowDimension()
>
> //EXCEPTION HERE
> .... etc.
--
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