fixed checkstyle warnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@894187 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cb75cc3458
commit
3c122e41b1
|
@ -74,7 +74,7 @@ public abstract class ComposableFunction implements UnivariateRealFunction {
|
|||
return 1/d;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/** The {@code Math.sin} method wrapped as a {@link ComposableFunction}. */
|
||||
public static final ComposableFunction SIN = new ComposableFunction() {
|
||||
/** {@inheritDoc} */
|
||||
|
@ -186,7 +186,7 @@ public abstract class ComposableFunction implements UnivariateRealFunction {
|
|||
return Math.log10(d);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/** The {@code Math.log1p} method wrapped as a {@link ComposableFunction}. */
|
||||
public static final ComposableFunction LOG1P = new ComposableFunction () {
|
||||
public double value(double d){
|
||||
|
|
|
@ -383,7 +383,7 @@ public abstract class AbstractRealVector implements RealVector {
|
|||
throw new IllegalArgumentException(e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/** {@inheritDoc} */
|
||||
public RealVector mapExp() {
|
||||
return copy().mapExpToSelf();
|
||||
|
@ -397,12 +397,12 @@ public abstract class AbstractRealVector implements RealVector {
|
|||
throw new IllegalArgumentException(e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/** {@inheritDoc} */
|
||||
public RealVector mapExpm1() {
|
||||
return copy().mapExpm1ToSelf();
|
||||
}
|
||||
|
||||
|
||||
/** {@inheritDoc} */
|
||||
public RealVector mapExpm1ToSelf() {
|
||||
try {
|
||||
|
@ -411,12 +411,12 @@ public abstract class AbstractRealVector implements RealVector {
|
|||
throw new IllegalArgumentException(e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/** {@inheritDoc} */
|
||||
public RealVector mapFloor() {
|
||||
return copy().mapFloorToSelf();
|
||||
}
|
||||
|
||||
|
||||
/** {@inheritDoc} */
|
||||
public RealVector mapFloorToSelf() {
|
||||
try {
|
||||
|
@ -425,12 +425,12 @@ public abstract class AbstractRealVector implements RealVector {
|
|||
throw new IllegalArgumentException(e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/** {@inheritDoc} */
|
||||
public RealVector mapInv() {
|
||||
return copy().mapInvToSelf();
|
||||
}
|
||||
|
||||
|
||||
/** {@inheritDoc} */
|
||||
public RealVector mapInvToSelf() {
|
||||
try {
|
||||
|
@ -486,7 +486,7 @@ public abstract class AbstractRealVector implements RealVector {
|
|||
public RealVector mapMultiply(double d) {
|
||||
return copy().mapMultiplyToSelf(d);
|
||||
}
|
||||
|
||||
|
||||
/** {@inheritDoc} */
|
||||
public RealVector mapMultiplyToSelf(double d){
|
||||
try {
|
||||
|
@ -500,7 +500,7 @@ public abstract class AbstractRealVector implements RealVector {
|
|||
public RealVector mapPow(double d) {
|
||||
return copy().mapPowToSelf(d);
|
||||
}
|
||||
|
||||
|
||||
/** {@inheritDoc} */
|
||||
public RealVector mapPowToSelf(double d){
|
||||
try {
|
||||
|
@ -584,7 +584,7 @@ public abstract class AbstractRealVector implements RealVector {
|
|||
public RealVector mapSubtract(double d) {
|
||||
return copy().mapSubtractToSelf(d);
|
||||
}
|
||||
|
||||
|
||||
/** {@inheritDoc} */
|
||||
public RealVector mapSubtractToSelf(double d){
|
||||
return mapAddToSelf(-d);
|
||||
|
|
|
@ -69,7 +69,6 @@ public class OpenMapRealVector extends AbstractRealVector implements SparseRealV
|
|||
* Construct a (dimension)-length vector of zeros, specifying zero tolerance.
|
||||
* @param dimension Size of the vector
|
||||
* @param epsilon The tolerance for having a value considered zero
|
||||
* @param defaultValue value for non-specified entries
|
||||
*/
|
||||
public OpenMapRealVector(int dimension, double epsilon) {
|
||||
virtualSize = dimension;
|
||||
|
@ -303,7 +302,7 @@ public class OpenMapRealVector extends AbstractRealVector implements SparseRealV
|
|||
}
|
||||
return d;
|
||||
}
|
||||
|
||||
|
||||
/** {@inheritDoc} */
|
||||
public double dotProduct(RealVector v) throws IllegalArgumentException {
|
||||
if(v instanceof OpenMapRealVector) {
|
||||
|
@ -608,7 +607,6 @@ public class OpenMapRealVector extends AbstractRealVector implements SparseRealV
|
|||
return false;
|
||||
}
|
||||
|
||||
|
||||
/** {@inheritDoc} */
|
||||
public OpenMapRealVector mapAdd(double d) {
|
||||
return copy().mapAddToSelf(d);
|
||||
|
|
|
@ -51,7 +51,7 @@ public class BigReal implements FieldElement<BigReal>, Comparable<BigReal>, Seri
|
|||
|
||||
/** Rounding mode for divisions. **/
|
||||
private RoundingMode roundingMode = RoundingMode.HALF_UP;
|
||||
|
||||
|
||||
/*** BigDecimal scale ***/
|
||||
private int scale = 64;
|
||||
|
||||
|
@ -192,11 +192,11 @@ public class BigReal implements FieldElement<BigReal>, Comparable<BigReal>, Seri
|
|||
* Gets the rounding mode for division operations
|
||||
* The default is {@code RoundingMode.HALF_UP}
|
||||
* @return the rounding mode.
|
||||
*/
|
||||
*/
|
||||
public RoundingMode getRoundingMode() {
|
||||
return roundingMode;
|
||||
}
|
||||
|
||||
|
||||
/***
|
||||
* Sets the rounding mode for decimal divisions.
|
||||
* @param roundingMode rounding mode for decimal divisions
|
||||
|
@ -204,7 +204,7 @@ public class BigReal implements FieldElement<BigReal>, Comparable<BigReal>, Seri
|
|||
public void setRoundingMode(RoundingMode roundingMode) {
|
||||
this.roundingMode = roundingMode;
|
||||
}
|
||||
|
||||
|
||||
/***
|
||||
* Sets the scale for division operations.
|
||||
* The default is 64
|
||||
|
@ -213,7 +213,7 @@ public class BigReal implements FieldElement<BigReal>, Comparable<BigReal>, Seri
|
|||
public int getScale() {
|
||||
return scale;
|
||||
}
|
||||
|
||||
|
||||
/***
|
||||
* Sets the scale for division operations.
|
||||
* @param scale scale for division operations
|
||||
|
@ -221,7 +221,7 @@ public class BigReal implements FieldElement<BigReal>, Comparable<BigReal>, Seri
|
|||
public void setScale(int scale) {
|
||||
this.scale = scale;
|
||||
}
|
||||
|
||||
|
||||
/** {@inheritDoc} */
|
||||
public BigReal add(BigReal a) {
|
||||
return new BigReal(d.add(a.d));
|
||||
|
|
Loading…
Reference in New Issue