CheckStyle.

This commit is contained in:
Gilles Sadowski 2021-07-11 03:15:10 +02:00
parent eab3bcec3c
commit 509f50b0a5
5 changed files with 3 additions and 9 deletions

View File

@ -17,7 +17,6 @@
package org.apache.commons.math4.legacy.optim.nonlinear.scalar.noderiv;
import java.util.Comparator;
import java.util.function.BiFunction;
import java.util.function.UnaryOperator;
import org.apache.commons.math4.legacy.analysis.MultivariateFunction;
@ -61,7 +60,7 @@ public class MultiDirectionalTransform
@Override
public UnaryOperator<Simplex> apply(final MultivariateFunction evaluationFunction,
final Comparator<PointValuePair> comparator) {
return (original) -> {
return original -> {
final PointValuePair best = original.get(0);
// Perform a reflection step.

View File

@ -17,7 +17,6 @@
package org.apache.commons.math4.legacy.optim.nonlinear.scalar.noderiv;
import java.util.Comparator;
import java.util.function.BiFunction;
import java.util.function.UnaryOperator;
import org.apache.commons.math4.legacy.analysis.MultivariateFunction;
@ -77,7 +76,7 @@ public class NelderMeadTransform
@Override
public UnaryOperator<Simplex> apply(final MultivariateFunction evaluationFunction,
final Comparator<PointValuePair> comparator) {
return (original) -> {
return original -> {
Simplex newSimplex = original;
// The simplex has n + 1 points if dimension is n.

View File

@ -29,8 +29,6 @@ import org.apache.commons.math4.legacy.analysis.MultivariateFunction;
import org.apache.commons.math4.legacy.exception.DimensionMismatchException;
import org.apache.commons.math4.legacy.exception.MathIllegalArgumentException;
import org.apache.commons.math4.legacy.exception.NotStrictlyPositiveException;
import org.apache.commons.math4.legacy.exception.NullArgumentException;
import org.apache.commons.math4.legacy.exception.OutOfRangeException;
import org.apache.commons.math4.legacy.exception.ZeroException;
import org.apache.commons.math4.legacy.exception.util.LocalizedFormats;
import org.apache.commons.math4.legacy.optim.OptimizationData;
@ -50,7 +48,7 @@ public final class Simplex implements OptimizationData {
/**
* Builds from a given set of coordinates.
*
* @param coordinate Reference simplex.
* @param referenceSimplex Reference simplex.
* @throws NotStrictlyPositiveException if the reference simplex does not
* contain at least one point.
* @throws DimensionMismatchException if there is a dimension mismatch

View File

@ -21,7 +21,6 @@ import java.util.function.UnaryOperator;
import org.apache.commons.math4.legacy.analysis.MultivariateFunction;
import org.apache.commons.math4.legacy.exception.MathUnsupportedOperationException;
import org.apache.commons.math4.legacy.exception.NullArgumentException;
import org.apache.commons.math4.legacy.exception.util.LocalizedFormats;
import org.apache.commons.math4.legacy.optim.ConvergenceChecker;
import org.apache.commons.math4.legacy.optim.OptimizationData;

View File

@ -24,7 +24,6 @@ import org.apache.commons.math4.legacy.optim.InitialGuess;
import org.apache.commons.math4.legacy.optim.MaxEval;
import org.apache.commons.math4.legacy.optim.PointValuePair;
import org.apache.commons.math4.legacy.optim.SimpleBounds;
import org.apache.commons.math4.legacy.optim.SimpleValueChecker;
import org.apache.commons.math4.legacy.optim.nonlinear.scalar.GoalType;
import org.apache.commons.math4.legacy.optim.nonlinear.scalar.ObjectiveFunction;
import org.apache.commons.math4.legacy.core.MathArrays;