commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
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 GMT
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;
 }



Mime
View raw message