git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1415158 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gilles Sadowski 2012-11-29 13:27:10 +00:00
parent 2855cc309e
commit ebae96965e
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}