private void calcLength() {
		length = 0.0;
		hashcount = 0;
		for (int i = 0; i < hash.length; ++i) {
			if (hash[i] == null) {
				continue;
			}
			double coeff = hash[i].getCoeff();
			length += coeff * coeff;
			hashcount += hash[i].getTF();
		}
		length = Math.sqrt(length);
	}
Install hashes and weights directly.  Length is automatically calculated.
The entries must already be sorted on the hash
@param entries
Ghidra/Framework/Generic/src/main/java/generic/lsh/vector/LSHCosineVector.java