1 package net.bmahe.genetics4j.samples.clustering;
2
3 import org.apache.commons.math3.ml.clustering.Clusterable;
4
5 public class LocationWrapper implements Clusterable {
6
7 private double[] points;
8
9 public LocationWrapper(double[] _points) {
10 this.points = new double[2];
11 this.points[0] = _points[0];
12 this.points[1] = _points[1];
13 }
14
15 public double[] getPoint() {
16 return points;
17 }
18 }