Remove trailing whitespace
This commit is contained in:
parent
a8d392580d
commit
5a8234a2fe
|
@ -23,7 +23,7 @@ import org.junit.Assert;
|
||||||
public class SimplePointCheckerTest {
|
public class SimplePointCheckerTest {
|
||||||
@Test(expected=NotStrictlyPositiveException.class)
|
@Test(expected=NotStrictlyPositiveException.class)
|
||||||
public void testIterationCheckPrecondition() {
|
public void testIterationCheckPrecondition() {
|
||||||
new SimplePointChecker<PointValuePair>(1e-1, 1e-2, 0);
|
new SimplePointChecker<>(1e-1, 1e-2, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
|
@ -83,7 +83,7 @@ public class MultivariateFunctionPenaltyAdapterTest {
|
||||||
biQuadratic.getUpper(),
|
biQuadratic.getUpper(),
|
||||||
1000.0, new double[] { 100.0, 100.0 });
|
1000.0, new double[] { 100.0, 100.0 });
|
||||||
|
|
||||||
SimplexOptimizer optimizer = new SimplexOptimizer(new SimplePointChecker<PointValuePair>(1.0e-11, 1.0e-20));
|
SimplexOptimizer optimizer = new SimplexOptimizer(new SimplePointChecker<>(1.0e-11, 1.0e-20));
|
||||||
|
|
||||||
final PointValuePair optimum
|
final PointValuePair optimum
|
||||||
= optimizer.optimize(new MaxEval(600),
|
= optimizer.optimize(new MaxEval(600),
|
||||||
|
@ -133,7 +133,7 @@ public class MultivariateFunctionPenaltyAdapterTest {
|
||||||
biQuadratic.getUpper(),
|
biQuadratic.getUpper(),
|
||||||
1000.0, new double[] { 100.0, 100.0 });
|
1000.0, new double[] { 100.0, 100.0 });
|
||||||
|
|
||||||
SimplexOptimizer optimizer = new SimplexOptimizer(new SimplePointChecker<>(1.0e-10, 1.0e-20));
|
SimplexOptimizer optimizer = new SimplexOptimizer(new SimplePointChecker<PointValuePair>(1.0e-10, 1.0e-20));
|
||||||
|
|
||||||
final PointValuePair optimum
|
final PointValuePair optimum
|
||||||
= optimizer.optimize(new MaxEval(400),
|
= optimizer.optimize(new MaxEval(400),
|
||||||
|
|
|
@ -86,7 +86,7 @@ public final class FrequencyTest {
|
||||||
Assert.assertEquals("-2 cum pct", 0, fInteger.getCumPct(-2), TOLERANCE);
|
Assert.assertEquals("-2 cum pct", 0, fInteger.getCumPct(-2), TOLERANCE);
|
||||||
Assert.assertEquals("10 cum pct", 1, fInteger.getCumPct(10), TOLERANCE);
|
Assert.assertEquals("10 cum pct", 1, fInteger.getCumPct(10), TOLERANCE);
|
||||||
|
|
||||||
fString = new Frequency<String>(String.CASE_INSENSITIVE_ORDER);
|
fString = new Frequency<>(String.CASE_INSENSITIVE_ORDER);
|
||||||
fString.addValue("one");
|
fString.addValue("one");
|
||||||
fString.addValue("One");
|
fString.addValue("One");
|
||||||
fString.addValue("oNe");
|
fString.addValue("oNe");
|
||||||
|
@ -260,10 +260,10 @@ public final class FrequencyTest {
|
||||||
Assert.assertEquals(1, f.getCount(ONE_LONG));
|
Assert.assertEquals(1, f.getCount(ONE_LONG));
|
||||||
Assert.assertEquals(0, f.getCount(TWO_LONG));
|
Assert.assertEquals(0, f.getCount(TWO_LONG));
|
||||||
|
|
||||||
Frequency<Long> g = new Frequency<>();
|
Frequency<Long> g = new Frequency<Long>();
|
||||||
g.addValue(TWO_LONG);
|
g.addValue(TWO_LONG);
|
||||||
|
|
||||||
Frequency<Long> h = new Frequency<>();
|
Frequency<Long> h = new Frequency<Long>();
|
||||||
h.addValue(THREE_LONG);
|
h.addValue(THREE_LONG);
|
||||||
|
|
||||||
List<Frequency<Long>> coll = new ArrayList<>();
|
List<Frequency<Long>> coll = new ArrayList<>();
|
||||||
|
|
|
@ -387,7 +387,7 @@ public class PSquarePercentileTest extends
|
||||||
|
|
||||||
@Test(expected = MathIllegalArgumentException.class)
|
@Test(expected = MathIllegalArgumentException.class)
|
||||||
public void testInitial() {
|
public void testInitial() {
|
||||||
PSquarePercentile.newMarkers(new ArrayList<Double>(), 0.5);
|
PSquarePercentile.newMarkers(new ArrayList<>(), 0.5);
|
||||||
Assert.fail();
|
Assert.fail();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -183,7 +183,7 @@ public class Network
|
||||||
}
|
}
|
||||||
|
|
||||||
neuronMap.put(id, new Neuron(id, features.clone()));
|
neuronMap.put(id, new Neuron(id, features.clone()));
|
||||||
linkMap.put(id, new HashSet<Long>());
|
linkMap.put(id, new HashSet<>());
|
||||||
|
|
||||||
if (id > nextId.get()) {
|
if (id > nextId.get()) {
|
||||||
nextId.set(id);
|
nextId.set(id);
|
||||||
|
|
Loading…
Reference in New Issue