org.grouplens.lenskit.transform.normalize

Interface VectorTransformation

• public interface VectorTransformation
Reversible in-place vector transformations.
• Method Summary

All Methods
Modifier and Type Method and Description
MutableSparseVector apply(MutableSparseVector vector)
Apply the vector transformation in-place to a vector.
MutableSparseVector unapply(MutableSparseVector vector)
Unapply the vector transformation in-place on a transformed vector.
• Method Detail

• apply

MutableSparseVector apply(MutableSparseVector vector)
Apply the vector transformation in-place to a vector.
Parameters:
vector - The vector to transform.
Returns:
vector (for chaining).
• unapply

MutableSparseVector unapply(MutableSparseVector vector)
Unapply the vector transformation in-place on a transformed vector. In some cases, the unapplication may supply values for key domain members that do not have values.
Parameters:
vector - The vector to transform.
Returns:
vector (for chaining).