Return-Path: X-Original-To: apmail-groovy-users-archive@minotaur.apache.org Delivered-To: apmail-groovy-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B1352181B2 for ; Sun, 3 Jan 2016 17:56:46 +0000 (UTC) Received: (qmail 47366 invoked by uid 500); 3 Jan 2016 17:56:41 -0000 Delivered-To: apmail-groovy-users-archive@groovy.apache.org Received: (qmail 47333 invoked by uid 500); 3 Jan 2016 17:56:41 -0000 Mailing-List: contact users-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@groovy.apache.org Delivered-To: mailing list users@groovy.apache.org Received: (qmail 47323 invoked by uid 99); 3 Jan 2016 17:56:41 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Jan 2016 17:56:41 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 0F2221A0C92 for ; Sun, 3 Jan 2016 17:56:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.129 X-Spam-Level: *** X-Spam-Status: No, score=3.129 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 94IRxzPL33lZ for ; Sun, 3 Jan 2016 17:56:40 +0000 (UTC) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com [209.85.217.177]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id AD22D20B91 for ; Sun, 3 Jan 2016 17:56:39 +0000 (UTC) Received: by mail-lb0-f177.google.com with SMTP id oh2so149412860lbb.3 for ; Sun, 03 Jan 2016 09:56:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=GJbAi/vFdnF56x2PdwJuznyeXqgXnxexwaPp0H6/64Y=; b=oC30+fNhXiYcyUne8XPbDGbXoNWafdGwsCjPPCXoXCIl9ZP10y7J238cRWcoWDkrHb V4nyktTtLMH+j2MJi2aRybCDIuLtpsPn1WbGPdJNM9lfeRTXktaDQzRRHEi2dwNH7Mzx E/gFCTqUvqZY0bc268UNSpWnUttWgTJu3HRLt6q7bi4U/sPgMpCtP0zmRd810uJH9lL7 n9wz9JqNITqVA2tamPDhpxZr0IBLGOOQs9cDBMWdXFd8xiIOOWnjgdsffpXLgKzf2mIL GgsZZu0VUsvqd+dEnl1G7ER9DFGtdFnPYVglf+FyP9Qbfplf2Y6cKlza9TPEcyUYgnro 5slA== MIME-Version: 1.0 X-Received: by 10.112.136.103 with SMTP id pz7mr22937635lbb.3.1451843792944; Sun, 03 Jan 2016 09:56:32 -0800 (PST) Received: by 10.112.198.101 with HTTP; Sun, 3 Jan 2016 09:56:32 -0800 (PST) Date: Sun, 3 Jan 2016 12:56:32 -0500 Message-ID: Subject: Apache Commons Math and Groovy -- Argument Type? From: Daniel Price To: users@groovy.apache.org Content-Type: multipart/alternative; boundary=089e0116084e8c490d052871b919 --089e0116084e8c490d052871b919 Content-Type: text/plain; charset=UTF-8 Sorry if this is a re-post--might have used wrong address previously... 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! --089e0116084e8c490d052871b919 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Sorry if this is a re-post--might have used wrong add= ress previously...

Got this 2.4.5 Groovy error try= ing to perform a covariance calc:

groovy.lang.Miss= ingMethodException: No signature of method: org.apache.commons.math3.stat.c= orrelation.Covariance.covariance() is applicable for argument types: ([Ljav= a.lang.Double;, [Ljava.lang.Double;)

covarianc= e() requires two double arrays, and that's what I provided, so what giv= es?

Do I need to cast the Groovy/Java array into a= nother type?

Any advice is much appreciated!
=
--089e0116084e8c490d052871b919--