changed ArrayListe to List
made fields final git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@627989 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2295b7c2fb
commit
2b4c87babc
|
@ -19,6 +19,7 @@ package org.apache.commons.math.estimation;
|
|||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Simple implementation of the {@link EstimationProblem
|
||||
|
@ -64,7 +65,7 @@ public class SimpleEstimationProblem implements EstimationProblem {
|
|||
public EstimatedParameter[] getUnboundParameters() {
|
||||
|
||||
// filter the unbound parameters
|
||||
ArrayList unbound = new ArrayList(parameters.size());
|
||||
List unbound = new ArrayList(parameters.size());
|
||||
for (Iterator iterator = parameters.iterator(); iterator.hasNext();) {
|
||||
EstimatedParameter p = (EstimatedParameter) iterator.next();
|
||||
if (! p.isBound()) {
|
||||
|
@ -101,9 +102,9 @@ public class SimpleEstimationProblem implements EstimationProblem {
|
|||
}
|
||||
|
||||
/** Estimated parameters. */
|
||||
private ArrayList parameters;
|
||||
private final List parameters;
|
||||
|
||||
/** Measurements. */
|
||||
private ArrayList measurements;
|
||||
private final List measurements;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue