Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 95970 invoked from network); 13 Oct 2009 13:49:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Oct 2009 13:49:16 -0000 Received: (qmail 55546 invoked by uid 500); 13 Oct 2009 13:49:15 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 55461 invoked by uid 500); 13 Oct 2009 13:49:15 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 55410 invoked by uid 99); 13 Oct 2009 13:49:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Oct 2009 13:49:15 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Oct 2009 13:49:13 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 102B82388908; Tue, 13 Oct 2009 13:48:53 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r824760 - in /commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/interpolation: MicrosphereInterpolatingFunction.java MicrosphereInterpolator.java MultivariateRealInterpolator.java Date: Tue, 13 Oct 2009 13:48:52 -0000 To: commits@commons.apache.org From: luc@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091013134853.102B82388908@eris.apache.org> Author: luc Date: Tue Oct 13 13:48:52 2009 New Revision: 824760 URL: http://svn.apache.org/viewvc?rev=824760&view=rev Log: fixed checkstyle warnings Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/interpolation/MicrosphereInterpolatingFunction.java commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/interpolation/MicrosphereInterpolator.java commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/interpolation/MultivariateRealInterpolator.java Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/interpolation/MicrosphereInterpolatingFunction.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/interpolation/MicrosphereInterpolatingFunction.java?rev=824760&r1=824759&r2=824760&view=diff ============================================================================== --- commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/interpolation/MicrosphereInterpolatingFunction.java (original) +++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/interpolation/MicrosphereInterpolatingFunction.java Tue Oct 13 13:48:52 2009 @@ -16,17 +16,16 @@ */ package org.apache.commons.math.analysis.interpolation; -import java.util.List; import java.util.ArrayList; -import java.util.Map; import java.util.HashMap; +import java.util.List; +import java.util.Map; import org.apache.commons.math.DimensionMismatchException; import org.apache.commons.math.MathRuntimeException; -import org.apache.commons.math.FunctionEvaluationException; import org.apache.commons.math.analysis.MultivariateRealFunction; -import org.apache.commons.math.linear.RealVector; import org.apache.commons.math.linear.ArrayRealVector; +import org.apache.commons.math.linear.RealVector; import org.apache.commons.math.random.UnitSphereRandomVectorGenerator; /** @@ -184,8 +183,7 @@ * @param point Interpolation point. * @return the interpolated value. */ - public double value(double[] point) - throws FunctionEvaluationException { + public double value(double[] point) { final RealVector p = new ArrayRealVector(point); @@ -235,6 +233,7 @@ * * @param v Vector. * @param w Vector. + * @return cosine of the angle */ private double cosAngle(final RealVector v, final RealVector w) { return v.dotProduct(w) / (v.getNorm() * w.getNorm()); Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/interpolation/MicrosphereInterpolator.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/interpolation/MicrosphereInterpolator.java?rev=824760&r1=824759&r2=824760&view=diff ============================================================================== --- commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/interpolation/MicrosphereInterpolator.java (original) +++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/interpolation/MicrosphereInterpolator.java Tue Oct 13 13:48:52 2009 @@ -107,16 +107,16 @@ /** * Set the number of microsphere elements. - * @param microsphereElements Number of surface elements of the microsphere. + * @param elements Number of surface elements of the microsphere. * @throws IllegalArgumentException if {@code microsphereElements <= 0}. */ - public void setMicropshereElements(final int microsphereElements) { + public void setMicropshereElements(final int elements) { if (microsphereElements < 0) { throw MathRuntimeException.createIllegalArgumentException( "number of microsphere elements must be positive, but got {0}", microsphereElements); } - this.microsphereElements = microsphereElements; + this.microsphereElements = elements; } } Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/interpolation/MultivariateRealInterpolator.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/interpolation/MultivariateRealInterpolator.java?rev=824760&r1=824759&r2=824760&view=diff ============================================================================== --- commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/interpolation/MultivariateRealInterpolator.java (original) +++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/interpolation/MultivariateRealInterpolator.java Tue Oct 13 13:48:52 2009 @@ -21,7 +21,7 @@ /** * Interface representing a univariate real interpolating function. - * + * * @version $Revision$ $Date$ */ public interface MultivariateRealInterpolator { @@ -40,7 +40,6 @@ * interpolation algorithm or some dimension mismatch occurs * @throws IllegalArgumentException if there are no data (xval null or zero length) */ - public MultivariateRealFunction interpolate(double[][] xval, - double[] yval) + MultivariateRealFunction interpolate(double[][] xval, double[] yval) throws MathException, IllegalArgumentException; }