@DefaultImplementation(value=DefaultItemVectorNormalizer.class) public interface ItemVectorNormalizer
Normalizes an item’s vector.
Modifier and Type | Method and Description |
---|---|
InvertibleFunction<Long2DoubleMap,Long2DoubleMap> |
makeTransformation(long itemId,
Long2DoubleMap vector)
Make a vector transformation for a item.
|
InvertibleFunction<Long2DoubleMap,Long2DoubleMap> makeTransformation(long itemId, Long2DoubleMap vector)
Make a vector transformation for a item. The resulting transformation will be applied to item vectors to normalize and denormalize them.
itemId
- The item ID to normalize for.vector
- The item’s vector to use as the reference vector.