Fixed checkstyle warnings.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1454461 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Luc Maisonobe 2013-03-08 16:56:59 +00:00
parent 2dd51f50d9
commit 2405474275
2 changed files with 27 additions and 25 deletions

View File

@ -226,7 +226,7 @@ public class DerivativeStructure implements ExtendedFieldElement<DerivativeStruc
return compiler.getOrder(); return compiler.getOrder();
} }
/***/ /** {@inheritDoc} */
public double getReal() { public double getReal() {
return data[0]; return data[0];
} }
@ -784,9 +784,9 @@ public class DerivativeStructure implements ExtendedFieldElement<DerivativeStruc
} }
// create a result with accurate value and all derivatives (not necessarily as accurate as the value) // create a result with accurate value and all derivatives (not necessarily as accurate as the value)
final double[] data = simpleValue.getAllDerivatives(); final double[] all = simpleValue.getAllDerivatives();
data[0] = accurateValue; all[0] = accurateValue;
return new DerivativeStructure(simpleValue.getFreeParameters(), simpleValue.getOrder(), data); return new DerivativeStructure(simpleValue.getFreeParameters(), simpleValue.getOrder(), all);
} }
@ -808,9 +808,9 @@ public class DerivativeStructure implements ExtendedFieldElement<DerivativeStruc
} }
// create a result with accurate value and all derivatives (not necessarily as accurate as the value) // create a result with accurate value and all derivatives (not necessarily as accurate as the value)
final double[] data = simpleValue.getAllDerivatives(); final double[] all = simpleValue.getAllDerivatives();
data[0] = accurateValue; all[0] = accurateValue;
return new DerivativeStructure(simpleValue.getFreeParameters(), simpleValue.getOrder(), data); return new DerivativeStructure(simpleValue.getFreeParameters(), simpleValue.getOrder(), all);
} }
@ -826,9 +826,9 @@ public class DerivativeStructure implements ExtendedFieldElement<DerivativeStruc
final DerivativeStructure simpleValue = a1.multiply(b1).add(a2.multiply(b2)); 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) // create a result with accurate value and all derivatives (not necessarily as accurate as the value)
final double[] data = simpleValue.getAllDerivatives(); final double[] all = simpleValue.getAllDerivatives();
data[0] = accurateValue; all[0] = accurateValue;
return new DerivativeStructure(getFreeParameters(), getOrder(), data); return new DerivativeStructure(getFreeParameters(), getOrder(), all);
} }
@ -844,9 +844,9 @@ public class DerivativeStructure implements ExtendedFieldElement<DerivativeStruc
final DerivativeStructure simpleValue = b1.multiply(a1).add(b2.multiply(a2)); 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) // create a result with accurate value and all derivatives (not necessarily as accurate as the value)
final double[] data = simpleValue.getAllDerivatives(); final double[] all = simpleValue.getAllDerivatives();
data[0] = accurateValue; all[0] = accurateValue;
return new DerivativeStructure(getFreeParameters(), getOrder(), data); return new DerivativeStructure(getFreeParameters(), getOrder(), all);
} }
@ -864,9 +864,9 @@ public class DerivativeStructure implements ExtendedFieldElement<DerivativeStruc
final DerivativeStructure simpleValue = a1.multiply(b1).add(a2.multiply(b2)).add(a3.multiply(b3)); 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) // create a result with accurate value and all derivatives (not necessarily as accurate as the value)
final double[] data = simpleValue.getAllDerivatives(); final double[] all = simpleValue.getAllDerivatives();
data[0] = accurateValue; all[0] = accurateValue;
return new DerivativeStructure(getFreeParameters(), getOrder(), data); return new DerivativeStructure(getFreeParameters(), getOrder(), all);
} }
@ -884,9 +884,9 @@ public class DerivativeStructure implements ExtendedFieldElement<DerivativeStruc
final DerivativeStructure simpleValue = b1.multiply(a1).add(b2.multiply(a2)).add(b3.multiply(a3)); 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) // create a result with accurate value and all derivatives (not necessarily as accurate as the value)
final double[] data = simpleValue.getAllDerivatives(); final double[] all = simpleValue.getAllDerivatives();
data[0] = accurateValue; all[0] = accurateValue;
return new DerivativeStructure(getFreeParameters(), getOrder(), data); return new DerivativeStructure(getFreeParameters(), getOrder(), all);
} }
@ -906,9 +906,9 @@ public class DerivativeStructure implements ExtendedFieldElement<DerivativeStruc
final DerivativeStructure simpleValue = a1.multiply(b1).add(a2.multiply(b2)).add(a3.multiply(b3)).add(a4.multiply(b4)); 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) // create a result with accurate value and all derivatives (not necessarily as accurate as the value)
final double[] data = simpleValue.getAllDerivatives(); final double[] all = simpleValue.getAllDerivatives();
data[0] = accurateValue; all[0] = accurateValue;
return new DerivativeStructure(getFreeParameters(), getOrder(), data); return new DerivativeStructure(getFreeParameters(), getOrder(), all);
} }
@ -928,9 +928,9 @@ public class DerivativeStructure implements ExtendedFieldElement<DerivativeStruc
final DerivativeStructure simpleValue = b1.multiply(a1).add(b2.multiply(a2)).add(b3.multiply(a3)).add(b4.multiply(a4)); 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) // create a result with accurate value and all derivatives (not necessarily as accurate as the value)
final double[] data = simpleValue.getAllDerivatives(); final double[] all = simpleValue.getAllDerivatives();
data[0] = accurateValue; all[0] = accurateValue;
return new DerivativeStructure(getFreeParameters(), getOrder(), data); return new DerivativeStructure(getFreeParameters(), getOrder(), all);
} }

View File

@ -40,6 +40,8 @@ import org.apache.commons.math3.util.MathArrays;
* derivative for all points all have degree 3n-1. * derivative for all points all have degree 3n-1.
* </p> * </p>
* *
* @param <T> Type of the field elements.
*
* @version $Id$ * @version $Id$
* @since 3.2 * @since 3.2
*/ */