Fixed CheckStyle warnings.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1361839 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bf2ac35d56
commit
a201eaf582
|
@ -26,8 +26,8 @@ import org.apache.commons.math3.exception.DimensionMismatchException;
|
|||
* weights.
|
||||
* Subclasses must implement the {@link #computeRule(int) computeRule} method.
|
||||
*
|
||||
* <T> Type of the number used to represent the points and weights of the
|
||||
* quadrature rules.
|
||||
* @param <T> Type of the number used to represent the points and weights of
|
||||
* the quadrature rules.
|
||||
*
|
||||
* @version $Id$
|
||||
* @since 3.1
|
||||
|
@ -64,7 +64,7 @@ public abstract class BaseRuleFactory<T extends Number> {
|
|||
}
|
||||
return rule;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Stores a rule.
|
||||
*
|
||||
|
@ -92,6 +92,8 @@ public abstract class BaseRuleFactory<T extends Number> {
|
|||
/**
|
||||
* Converts the from the actual {@code Number} type to {@code double}
|
||||
*
|
||||
* @param <T> Type of the number used to represent the points and
|
||||
* weights of the quadrature rules.
|
||||
* @param rule Points and weights.
|
||||
* @return points and weights as {@code double}s.
|
||||
*/
|
||||
|
|
|
@ -16,10 +16,7 @@
|
|||
*/
|
||||
package org.apache.commons.math3.analysis.integration.gauss;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.TreeMap;
|
||||
import org.apache.commons.math3.util.Pair;
|
||||
import org.apache.commons.math3.exception.DimensionMismatchException;
|
||||
|
||||
/**
|
||||
* Class that provides different ways to compute the nodes and weights to be
|
||||
|
@ -108,7 +105,7 @@ public class GaussIntegratorFactory {
|
|||
* Performs a change of variable so that the integration can be performed
|
||||
* on an arbitrary interval {@code [a, b]}.
|
||||
* It is assumed that the natural interval is {@code [-1, 1]}.
|
||||
*
|
||||
*
|
||||
* @param rule Original points and weights.
|
||||
* @param a Lower bound of the integration interval.
|
||||
* @param b Lower bound of the integration interval.
|
||||
|
|
|
@ -32,6 +32,7 @@ import org.apache.commons.math3.util.Pair;
|
|||
* @since 3.1
|
||||
*/
|
||||
public class LegendreHighPrecisionRuleFactory extends BaseRuleFactory<BigDecimal> {
|
||||
/** Settings for enhanced precision computations. */
|
||||
private final MathContext mContext;
|
||||
/** The number {@code 2}. */
|
||||
private final BigDecimal two;
|
||||
|
|
|
@ -16,8 +16,6 @@
|
|||
*/
|
||||
package org.apache.commons.math3.analysis.integration.gauss;
|
||||
|
||||
import java.math.MathContext;
|
||||
import java.math.BigDecimal;
|
||||
import org.apache.commons.math3.util.Pair;
|
||||
|
||||
/**
|
||||
|
@ -133,7 +131,7 @@ public class LegendreRuleFactory extends BaseRuleFactory<Double> {
|
|||
points[iMax] = 0d;
|
||||
weights[iMax] = w;
|
||||
}
|
||||
|
||||
|
||||
return new Pair<Double[], Double[]>(points, weights);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/**
|
||||
*
|
||||
* Gauss family of quadrature schemes.
|
||||
*
|
||||
*/
|
||||
package org.apache.commons.math3.analysis.integration.gauss;
|
|
@ -25,7 +25,6 @@ import org.apache.commons.math3.exception.NotPositiveException;
|
|||
import org.apache.commons.math3.exception.NullArgumentException;
|
||||
import org.apache.commons.math3.exception.DimensionMismatchException;
|
||||
import org.apache.commons.math3.exception.NumberIsTooLargeException;
|
||||
import org.apache.commons.math3.exception.MathArithmeticException;
|
||||
import org.apache.commons.math3.exception.OutOfRangeException;
|
||||
import org.apache.commons.math3.exception.util.LocalizedFormats;
|
||||
import org.apache.commons.math3.util.MathUtils;
|
||||
|
|
|
@ -1088,7 +1088,7 @@ public abstract class RealVector {
|
|||
* not equal to this {@code RealVector} instance.
|
||||
*/
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
public boolean equals(Object other) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
|
|
|
@ -93,19 +93,18 @@ public class PointValuePair extends Pair<double[], Double> implements Serializab
|
|||
|
||||
/** Internal class used only for serialization. */
|
||||
private static class DataTransferObject implements Serializable {
|
||||
|
||||
/** Serializable UID. */
|
||||
private static final long serialVersionUID = 20120513L;
|
||||
|
||||
/** Point coordinates.
|
||||
/**
|
||||
* Point coordinates.
|
||||
* @Serial
|
||||
*/
|
||||
final double[] point;
|
||||
|
||||
/** Value of the objective function at the point.
|
||||
private final double[] point;
|
||||
/**
|
||||
* Value of the objective function at the point.
|
||||
* @Serial
|
||||
*/
|
||||
final double value;
|
||||
private final double value;
|
||||
|
||||
/** Simple constructor.
|
||||
* @param point Point coordinates.
|
||||
|
|
|
@ -118,19 +118,18 @@ public class PointVectorValuePair extends Pair<double[], double[]> implements Se
|
|||
|
||||
/** Internal class used only for serialization. */
|
||||
private static class DataTransferObject implements Serializable {
|
||||
|
||||
/** Serializable UID. */
|
||||
private static final long serialVersionUID = 20120513L;
|
||||
|
||||
/** Point coordinates.
|
||||
/**
|
||||
* Point coordinates.
|
||||
* @Serial
|
||||
*/
|
||||
final double[] point;
|
||||
|
||||
/** Value of the objective function at the point.
|
||||
private final double[] point;
|
||||
/**
|
||||
* Value of the objective function at the point.
|
||||
* @Serial
|
||||
*/
|
||||
final double[] value;
|
||||
private final double[] value;
|
||||
|
||||
/** Simple constructor.
|
||||
* @param point Point coordinates.
|
||||
|
@ -147,7 +146,5 @@ public class PointVectorValuePair extends Pair<double[], double[]> implements Se
|
|||
private Object readResolve() {
|
||||
return new PointVectorValuePair(point, value, false);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue