| Package | Description |
|---|---|
| org.grouplens.lenskit.scored |
Associate IDs with scores.
|
| org.grouplens.lenskit.vectors |
Vectors (both sparse and dense) and their operations.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractScoredId
A base class for
ScoredId implementations providing
equals and hashCode methods. |
| Modifier and Type | Method and Description |
|---|---|
ScoredId |
ScoredIdBuilder.build()
Finish constructing the
ScoredId and instantiate it. |
static ScoredId |
ScoredIds.create(long id,
double score)
Create a scored id with no channels.
|
ScoredId |
PackedScoredIdList.get(int i) |
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.collect.Ordering<ScoredId> |
ScoredIds.channelOrder(Symbol chan)
An ordering (comparator) that compares IDs by channel.
|
static <T extends Comparable<? super T>> |
ScoredIds.channelOrder(TypedSymbol<T> chan)
An ordering (comparator) that compares IDs by typed channel.
|
static <T> com.google.common.collect.Ordering<ScoredId> |
ScoredIds.channelOrder(TypedSymbol<T> chan,
Comparator<? super T> order)
An ordering (comparator) that compares IDs by typed channel.
|
static FastCollection<ScoredId> |
ScoredIds.collectionFromVector(SparseVector vector)
View a vector as a
FastCollection of ScoredId objects. |
Iterator<ScoredId> |
PackedScoredIdList.fastIterator() |
static com.google.common.base.Function<ScoredId,Long> |
ScoredIds.idFunction()
A
Function that extracts the ID from a scored ID. |
static com.google.common.collect.Ordering<ScoredId> |
ScoredIds.idOrder()
An ordering (comparator) that compares IDs by score.
|
static com.google.common.collect.Ordering<ScoredId> |
ScoredIds.scoreOrder()
An ordering (comparator) that compares IDs by score.
|
| Modifier and Type | Method and Description |
|---|---|
ScoredIdListBuilder |
ScoredIdListBuilder.add(ScoredId id)
Add a scored ID.
|
static ScoredIdBuilder |
ScoredIds.copyBuilder(ScoredId id)
Create a new builder initialized to copy the specified scored ID.
|
| Modifier and Type | Method and Description |
|---|---|
ScoredIdListBuilder |
ScoredIdListBuilder.addAll(Iterable<ScoredId> ids)
Add a collection of IDs.
|
ScoredIdListBuilder |
ScoredIdListBuilder.sort(Comparator<ScoredId> order)
Sort the list-in-progress by the specified comparator.
|
| Modifier and Type | Method and Description |
|---|---|
static MutableSparseVector |
Vectors.fromScoredIds(List<ScoredId> scores) |
Copyright © 2013 GroupLens Research. All Rights Reserved.