groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric MacAdie <emaca...@gmail.com>
Subject Re: Apache Commons Math and Groovy -- Argument Type?
Date Sun, 03 Jan 2016 18:43:29 GMT
Could you give a code sample?

= Eric MacAdie


On Sun, Jan 3, 2016 at 11:37 AM, Daniel Price <danprice303@gmail.com> wrote:

> Got this 2.4.5 Groovy error trying to perform a covariance calc:
>
> groovy.lang.MissingMethodException: No signature of method:
> org.apache.commons.math3.stat.correlation.Covariance.covariance() is
> applicable for argument types: ([Ljava.lang.Double;, [Ljava.lang.Double;)
>
> covariance() requires two double arrays, and that's what I provided, so
> what gives?
>
> Do I need to cast the Groovy/Java array into another type?
>
> Any advice is much appreciated!
>
> D
>
>
>

Mime
View raw message