@Shareable @ThreadSafe public final class RatingVectorUserHistorySummarizer extends Object implements UserHistorySummarizer, Serializable
Constructor and Description |
---|
RatingVectorUserHistorySummarizer() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
All rating vector summarizers are equal.
|
Class<? extends Event> |
eventTypeWanted()
Get the supertype of all events required by this summarizer.
|
int |
hashCode() |
static SparseVector |
makeRatingVector(UserHistory<? extends Event> history) |
SparseVector |
summarize(UserHistory<? extends Event> history)
Compute a vector summary of a user's history.
|
String |
toString() |
public Class<? extends Event> eventTypeWanted()
UserHistorySummarizer
eventTypeWanted
in interface UserHistorySummarizer
@Nonnull public SparseVector summarize(@Nonnull UserHistory<? extends Event> history)
UserHistorySummarizer
summarize
in interface UserHistorySummarizer
history
- The history to summarize.public static SparseVector makeRatingVector(@Nonnull UserHistory<? extends Event> history)