commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r1454461 - in /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis: differentiation/DerivativeStructure.java interpolation/FieldHermiteInterpolator.java
Date Fri, 08 Mar 2013 16:56:59 GMT
Author: luc
Date: Fri Mar  8 16:56:59 2013
New Revision: 1454461

URL: http://svn.apache.org/r1454461
Log:
Fixed checkstyle warnings.

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/differentiation/DerivativeStructure.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/interpolation/FieldHermiteInterpolator.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/differentiation/DerivativeStructure.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/differentiation/DerivativeStructure.java?rev=1454461&r1=1454460&r2=1454461&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/differentiation/DerivativeStructure.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/differentiation/DerivativeStructure.java
Fri Mar  8 16:56:59 2013
@@ -226,7 +226,7 @@ public class DerivativeStructure impleme
         return compiler.getOrder();
     }
 
-    /***/
+    /** {@inheritDoc} */
     public double getReal() {
         return data[0];
     }
@@ -784,9 +784,9 @@ public class DerivativeStructure impleme
         }
 
         // create a result with accurate value and all derivatives (not necessarily as accurate
as the value)
-        final double[] data = simpleValue.getAllDerivatives();
-        data[0] = accurateValue;
-        return new DerivativeStructure(simpleValue.getFreeParameters(), simpleValue.getOrder(),
data);
+        final double[] all = simpleValue.getAllDerivatives();
+        all[0] = accurateValue;
+        return new DerivativeStructure(simpleValue.getFreeParameters(), simpleValue.getOrder(),
all);
 
     }
 
@@ -808,9 +808,9 @@ public class DerivativeStructure impleme
         }
 
         // create a result with accurate value and all derivatives (not necessarily as accurate
as the value)
-        final double[] data = simpleValue.getAllDerivatives();
-        data[0] = accurateValue;
-        return new DerivativeStructure(simpleValue.getFreeParameters(), simpleValue.getOrder(),
data);
+        final double[] all = simpleValue.getAllDerivatives();
+        all[0] = accurateValue;
+        return new DerivativeStructure(simpleValue.getFreeParameters(), simpleValue.getOrder(),
all);
 
     }
 
@@ -826,9 +826,9 @@ public class DerivativeStructure impleme
         final DerivativeStructure simpleValue = a1.multiply(b1).add(a2.multiply(b2));
 
         // create a result with accurate value and all derivatives (not necessarily as accurate
as the value)
-        final double[] data = simpleValue.getAllDerivatives();
-        data[0] = accurateValue;
-        return new DerivativeStructure(getFreeParameters(), getOrder(), data);
+        final double[] all = simpleValue.getAllDerivatives();
+        all[0] = accurateValue;
+        return new DerivativeStructure(getFreeParameters(), getOrder(), all);
 
     }
 
@@ -844,9 +844,9 @@ public class DerivativeStructure impleme
         final DerivativeStructure simpleValue = b1.multiply(a1).add(b2.multiply(a2));
 
         // create a result with accurate value and all derivatives (not necessarily as accurate
as the value)
-        final double[] data = simpleValue.getAllDerivatives();
-        data[0] = accurateValue;
-        return new DerivativeStructure(getFreeParameters(), getOrder(), data);
+        final double[] all = simpleValue.getAllDerivatives();
+        all[0] = accurateValue;
+        return new DerivativeStructure(getFreeParameters(), getOrder(), all);
 
     }
 
@@ -864,9 +864,9 @@ public class DerivativeStructure impleme
         final DerivativeStructure simpleValue = a1.multiply(b1).add(a2.multiply(b2)).add(a3.multiply(b3));
 
         // create a result with accurate value and all derivatives (not necessarily as accurate
as the value)
-        final double[] data = simpleValue.getAllDerivatives();
-        data[0] = accurateValue;
-        return new DerivativeStructure(getFreeParameters(), getOrder(), data);
+        final double[] all = simpleValue.getAllDerivatives();
+        all[0] = accurateValue;
+        return new DerivativeStructure(getFreeParameters(), getOrder(), all);
 
     }
 
@@ -884,9 +884,9 @@ public class DerivativeStructure impleme
         final DerivativeStructure simpleValue = b1.multiply(a1).add(b2.multiply(a2)).add(b3.multiply(a3));
 
         // create a result with accurate value and all derivatives (not necessarily as accurate
as the value)
-        final double[] data = simpleValue.getAllDerivatives();
-        data[0] = accurateValue;
-        return new DerivativeStructure(getFreeParameters(), getOrder(), data);
+        final double[] all = simpleValue.getAllDerivatives();
+        all[0] = accurateValue;
+        return new DerivativeStructure(getFreeParameters(), getOrder(), all);
 
     }
 
@@ -906,9 +906,9 @@ public class DerivativeStructure impleme
         final DerivativeStructure simpleValue = a1.multiply(b1).add(a2.multiply(b2)).add(a3.multiply(b3)).add(a4.multiply(b4));
 
         // create a result with accurate value and all derivatives (not necessarily as accurate
as the value)
-        final double[] data = simpleValue.getAllDerivatives();
-        data[0] = accurateValue;
-        return new DerivativeStructure(getFreeParameters(), getOrder(), data);
+        final double[] all = simpleValue.getAllDerivatives();
+        all[0] = accurateValue;
+        return new DerivativeStructure(getFreeParameters(), getOrder(), all);
 
     }
 
@@ -928,9 +928,9 @@ public class DerivativeStructure impleme
         final DerivativeStructure simpleValue = b1.multiply(a1).add(b2.multiply(a2)).add(b3.multiply(a3)).add(b4.multiply(a4));
 
         // create a result with accurate value and all derivatives (not necessarily as accurate
as the value)
-        final double[] data = simpleValue.getAllDerivatives();
-        data[0] = accurateValue;
-        return new DerivativeStructure(getFreeParameters(), getOrder(), data);
+        final double[] all = simpleValue.getAllDerivatives();
+        all[0] = accurateValue;
+        return new DerivativeStructure(getFreeParameters(), getOrder(), all);
 
     }
 

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/interpolation/FieldHermiteInterpolator.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/interpolation/FieldHermiteInterpolator.java?rev=1454461&r1=1454460&r2=1454461&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/interpolation/FieldHermiteInterpolator.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/interpolation/FieldHermiteInterpolator.java
Fri Mar  8 16:56:59 2013
@@ -40,6 +40,8 @@ import org.apache.commons.math3.util.Mat
  * derivative for all points all have degree 3n-1.
  * </p>
  *
+ * @param <T> Type of the field elements.
+ *
  * @version $Id$
  * @since 3.2
  */



Mime
View raw message