private void writeOnlyList(ArrayList<HashEntry> only, StringBuilder buf) {
		for (int i = 0; i < only.size(); ++i) {
			HashEntry entry = only.get(i);
			buf.append(Integer.toHexString(entry.getHash()));
			buf.append(' ').append(entry.getTF());
			buf.append(' ').append(entry.getCoeff());
			buf.append('\n');
		}
	}
Assuming -feature- is sorted and -hash- is empty, count the features and populate -hash- and -tf-
For every unique feature, look up its idf via -idflookup-
@param feature is the list of sorted hash features
@param wfactory is the WeightFactory used to decide feature weights
@param idflookup is the IDFLookup used to decide relative frequency of individual features
Ghidra/Framework/Generic/src/main/java/generic/lsh/vector/LSHCosineVector.java