Class LSHCosineVectorAccum

java.lang.Object
generic.lsh.vector.LSHCosineVector
generic.lsh.vector.LSHCosineVectorAccum
All Implemented Interfaces:
LSHVector

public class LSHCosineVectorAccum extends LSHCosineVector
A cosine vector where we can accumulate the (feature,weight) pairs over time using the addHash method. Once either the getLength or compare methods is called the vector becomes "finalized" and acts as an ordinary LSHCosineVector