commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r802513 - in /commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/differences: EightPointsScheme.java FourPointsScheme.java SixPointsScheme.java TwoPointsScheme.java
Date Sun, 09 Aug 2009 10:55:14 GMT
Author: luc
Date: Sun Aug  9 10:55:14 2009
New Revision: 802513

URL: http://svn.apache.org/viewvc?rev=802513&view=rev
Log:
added @inheridDoc

Modified:
    commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/differences/EightPointsScheme.java
    commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/differences/FourPointsScheme.java
    commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/differences/SixPointsScheme.java
    commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/differences/TwoPointsScheme.java

Modified: commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/differences/EightPointsScheme.java
URL: http://svn.apache.org/viewvc/commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/differences/EightPointsScheme.java?rev=802513&r1=802512&r2=802513&view=diff
==============================================================================
--- commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/differences/EightPointsScheme.java
(original)
+++ commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/differences/EightPointsScheme.java
Sun Aug  9 10:55:14 2009
@@ -43,9 +43,13 @@
     /** {@inheritDoc} */
     public UnivariateDerivative differentiate(final UnivariateDifferentiable d) {
         return new UnivariateDerivative() {
+
+            /** {@inheritDoc} */
             public UnivariateDifferentiable getPrimitive() {
                 return d;
             }
+
+            /** {@inheritDoc} */
             public DifferentialPair f(final DifferentialPair t) {
                 final double h = getStepSize();
                 final double u0 = t.getValue();
@@ -56,6 +60,7 @@
                 final double d4 = d.f(u0 + 4 * h) - d.f(u0 - 4 * h);
                 return new DifferentialPair(ft, t.getFirstDerivative() * (-3 * d4 + 32 *
d3 - 168 * d2 + 672 * d1) / denominator);
             }
+
         };
     }
 

Modified: commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/differences/FourPointsScheme.java
URL: http://svn.apache.org/viewvc/commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/differences/FourPointsScheme.java?rev=802513&r1=802512&r2=802513&view=diff
==============================================================================
--- commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/differences/FourPointsScheme.java
(original)
+++ commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/differences/FourPointsScheme.java
Sun Aug  9 10:55:14 2009
@@ -43,9 +43,13 @@
     /** {@inheritDoc} */
     public UnivariateDerivative differentiate(final UnivariateDifferentiable d) {
         return new UnivariateDerivative() {
+
+            /** {@inheritDoc} */
             public UnivariateDifferentiable getPrimitive() {
                 return d;
             }
+
+            /** {@inheritDoc} */
             public DifferentialPair f(final DifferentialPair t) {
                 final double h = getStepSize();
                 final double u0 = t.getValue();
@@ -54,6 +58,7 @@
                 final double d2 = d.f(u0 + 2 * h) - d.f(u0 - 2 * h);
                 return new DifferentialPair(ft, t.getFirstDerivative() * (8 * d1 - d2) /
denominator);
             }
+
         };
     }
 

Modified: commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/differences/SixPointsScheme.java
URL: http://svn.apache.org/viewvc/commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/differences/SixPointsScheme.java?rev=802513&r1=802512&r2=802513&view=diff
==============================================================================
--- commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/differences/SixPointsScheme.java
(original)
+++ commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/differences/SixPointsScheme.java
Sun Aug  9 10:55:14 2009
@@ -43,9 +43,13 @@
     /** {@inheritDoc} */
     public UnivariateDerivative differentiate(final UnivariateDifferentiable d) {
         return new UnivariateDerivative() {
+
+            /** {@inheritDoc} */
             public UnivariateDifferentiable getPrimitive() {
                 return d;
             }
+
+            /** {@inheritDoc} */
             public DifferentialPair f(final DifferentialPair t) {
                 final double h = getStepSize();
                 final double u0 = t.getValue();
@@ -55,6 +59,7 @@
                 final double d3 = d.f(u0 + 3 * h) - d.f(u0 - 3 * h);
                 return new DifferentialPair(ft, t.getFirstDerivative() * (d3 - 9 * d2 + 45
* d1) / denominator);
             }
+
         };
     }
 

Modified: commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/differences/TwoPointsScheme.java
URL: http://svn.apache.org/viewvc/commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/differences/TwoPointsScheme.java?rev=802513&r1=802512&r2=802513&view=diff
==============================================================================
--- commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/differences/TwoPointsScheme.java
(original)
+++ commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/differences/TwoPointsScheme.java
Sun Aug  9 10:55:14 2009
@@ -43,9 +43,13 @@
     /** {@inheritDoc} */
     public UnivariateDerivative differentiate(final UnivariateDifferentiable d) {
         return new UnivariateDerivative() {
+
+            /** {@inheritDoc} */
             public UnivariateDifferentiable getPrimitive() {
                 return d;
             }
+
+            /** {@inheritDoc} */
             public DifferentialPair f(final DifferentialPair t) {
                 final double h = getStepSize();
                 final double u0 = t.getValue();
@@ -53,6 +57,7 @@
                 final double d1 = d.f(u0 + h) - d.f(u0 - h);
                 return new DifferentialPair(ft, t.getFirstDerivative() * d1 / denominator);
             }
+
         };
     }
 



Mime
View raw message