From ebae96965e9b97866d5b39440db1aace2439c3f8 Mon Sep 17 00:00:00 2001 From: Gilles Sadowski <erans@apache.org> Date: Thu, 29 Nov 2012 13:27:10 +0000 Subject: [PATCH] Javadoc. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1415158 13f79535-47bb-0310-9956-ffa450edef68 --- .../math3/analysis/differentiation/DerivativeStructure.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/commons/math3/analysis/differentiation/DerivativeStructure.java b/src/main/java/org/apache/commons/math3/analysis/differentiation/DerivativeStructure.java index 3a3dcf82f..2c9d1fa3f 100644 --- a/src/main/java/org/apache/commons/math3/analysis/differentiation/DerivativeStructure.java +++ b/src/main/java/org/apache/commons/math3/analysis/differentiation/DerivativeStructure.java @@ -100,9 +100,9 @@ public class DerivativeStructure implements FieldElement<DerivativeStructure>, S * themselves is +1.</p> * @param parameters number of free parameters * @param order derivation order - * @param index index of the variable (from 0 to {@code variables - 1}) + * @param index index of the variable (from 0 to {@code parameters - 1}) * @param value value of the variable - * @exception NumberIsTooLargeException if index is equal to variables or larger + * @exception NumberIsTooLargeException if {@code index >= parameters}. * @see #DerivativeStructure(int, int, double) */ public DerivativeStructure(final int parameters, final int order, @@ -115,7 +115,7 @@ public class DerivativeStructure implements FieldElement<DerivativeStructure>, S } if (order > 0) { - // the derivative of the variable with respect to itself is 1.0 + // the derivative of the variable with respect to itself is 1. data[DSCompiler.getCompiler(index, order).getSize()] = 1.0; }