centroids = new double[tree.capacity()];
counts = new int[tree.capacity()];
aggregatedCounts = new int[tree.capacity()];
if (record) {
@SuppressWarnings("unchecked")
final List<Double>[] datas = new List[tree.capacity()];
this.datas = datas;
centroids = new double[tree.capacity()];
counts = new int[tree.capacity()];
aggregatedCounts = new int[tree.capacity()];
if (record) {
@SuppressWarnings("unchecked")
final List<Double>[] datas = new List[tree.capacity()];
this.datas = datas;