public abstract class AbstractUserVectorNormalizer extends Object implements UserVectorNormalizer
Constructor and Description |
---|
AbstractUserVectorNormalizer() |
Modifier and Type | Method and Description |
---|---|
MutableSparseVector |
normalize(long user,
SparseVector vector,
MutableSparseVector target)
Normalize a vector with respect to a user vector.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
makeTransformation
public MutableSparseVector normalize(long user, @Nonnull SparseVector vector, @Nullable MutableSparseVector target)
Delegates to UserVectorNormalizer.makeTransformation(long, SparseVector)
and the resulting VectorTransformation
.
normalize
in interface UserVectorNormalizer
user
- The user to normalize a vector for.vector
- The user's vector for reference.target
- The vector to normalize. If null
, the user vector is normalized.target
vector, if specified. Otherwise, a fresh mutable vector
containing a normalized copy of the user vector is returned.