add final to some variables
This commit is contained in:
parent
ae8cd02318
commit
42f5e83b50
@ -12,8 +12,8 @@ import java.util.stream.IntStream;
|
||||
|
||||
public class CrossValidation
|
||||
{
|
||||
private int paramMin;
|
||||
private int paramMax;
|
||||
private final int paramMin;
|
||||
private final int paramMax;
|
||||
|
||||
public CrossValidation(int paramMin, int paramMax)
|
||||
{
|
||||
|
@ -15,9 +15,9 @@ public class KNearestNeighbour implements MachineLearning
|
||||
private List<Vector> positives;
|
||||
private List<Vector> negatives;
|
||||
|
||||
private Distance distance;
|
||||
private final Distance distance;
|
||||
|
||||
private int k;
|
||||
private final int k;
|
||||
|
||||
public KNearestNeighbour(Distance distance)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user