public double[] toArray() {
		int numrows = getSize();
		double[] res = new double[ numrows ];
		double scaleSqrt = Math.sqrt(scale);

		for (int i = 0; i < idfweight.length; ++i) {
			res[i] = idfweight[i] / scaleSqrt;
		}

		for (int i = 0; i < tfweight.length; ++i) {
			res[i + idfweight.length] = tfweight[i];
		}

		res[numrows - 7] = weightnorm * scale;
		res[numrows - 6] = probflip0;
		res[numrows - 5] = probflip1;
		res[numrows - 4] = probdiff0;
		res[numrows - 3] = probdiff1;
		res[numrows - 2] = scale;
		res[numrows - 1] = addend;

		return res;
	}
Condense weight table down to array of doubles
@return array of doubles
Ghidra/Framework/Generic/src/main/java/generic/lsh/vector/WeightFactory.java