commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1065614 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/function/Logistic.java
Date Mon, 31 Jan 2011 13:48:50 GMT
Author: erans
Date: Mon Jan 31 13:48:50 2011
New Revision: 1065614

URL: http://svn.apache.org/viewvc?rev=1065614&view=rev
Log:
Javadoc update.

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/function/Logistic.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/function/Logistic.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/function/Logistic.java?rev=1065614&r1=1065613&r2=1065614&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/function/Logistic.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/analysis/function/Logistic.java
Mon Jan 31 13:48:50 2011
@@ -43,12 +43,14 @@ public class Logistic implements Univari
     private final double m;
 
     /**
-     * @param k Upper asymptote.
+     * @param k If {@code b > 0}, value of the function for x going towards +∞.
+     * If {@code b < 0}, value of the function for x going towards -&infin;.
      * @param m Abscissa of maximum growth.
      * @param b Growth rate.
      * @param q Parameter that affects the position of the curve along the
      * ordinate axis.
-     * @param a Lower asymptote.
+     * @param a If {@code b > 0}, value of the function for x going towards -&infin;.
+     * If {@code b < 0}, value of the function for x going towards +&infin;.
      * @param n Parameter that affects near which asymptote the maximum
      * growth occurs.
      * @throws NotStrictlyPositiveException if {@code n <= 0}.
@@ -73,6 +75,6 @@ public class Logistic implements Univari
 
     /** {@inheritDoc} */
     public double value(double x) {
-        return a + (k - a) / FastMath.pow((1 + q * FastMath.exp(b * (m - x))), 1 / n);
+        return a + (k - a) / FastMath.pow(1 + q * FastMath.exp(b * (m - x)), 1 / n);
     }
 }



Mime
View raw message