| Package | Description |
|---|---|
| org.grouplens.lenskit.scored |
Associate IDs with scores.
|
| org.grouplens.lenskit.symbols |
Interned symbols.
|
| org.grouplens.lenskit.vectors |
Vectors (both sparse and dense) and their operations.
|
| Modifier and Type | Method and Description |
|---|---|
Set<TypedSymbol<?>> |
AbstractScoredId.getChannelSymbols() |
Set<TypedSymbol<?>> |
ScoredId.getChannelSymbols()
Determine the typed symbols associated with all side channels of a
ScoredId. |
| Modifier and Type | Method and Description |
|---|---|
ScoredIdListBuilder |
ScoredIdListBuilder.addChannel(TypedSymbol<?> sym)
Add a side channel to the list builder.
|
<K> ScoredIdBuilder |
ScoredIdBuilder.addChannel(TypedSymbol<K> symbol,
K value)
Add a new side channel to the
ScoredId under construction. |
<T> ScoredIdListBuilder |
ScoredIdListBuilder.addChannel(TypedSymbol<T> sym,
T dft)
Add a typed side channel to the list builder.
|
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.
|
<T> T |
ScoredId.getChannelValue(TypedSymbol<T> sym)
Get the value for a channel.
|
boolean |
AbstractScoredId.hasChannel(TypedSymbol<?> sym)
Determine if a
ScoredId has a specific typed channel. |
boolean |
ScoredId.hasChannel(TypedSymbol<?> s)
Determine if a
ScoredId has a specific typed channel. |
| Modifier and Type | Method and Description |
|---|---|
ScoredIdListBuilder |
ScoredIdListBuilder.addTypedChannels(Iterable<? extends TypedSymbol<?>> channels)
Add multiple channels with a default value of
null. |
| Modifier and Type | Method and Description |
|---|---|
TypedSymbol<Double> |
DoubleSymbolValue.getSymbol() |
abstract TypedSymbol<T> |
SymbolValue.getSymbol() |
static <T> TypedSymbol<T> |
TypedSymbol.of(Class<T> type,
String name)
Get a unique symbol for and .
|
static <T> TypedSymbol<T> |
TypedSymbol.of(Class<T> type,
Symbol sym) |
<T> TypedSymbol<T> |
Symbol.withType(Class<T> type)
Make a typed symbol from this symbol.
|
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.base.Function<SymbolValue<?>,TypedSymbol<?>> |
SymbolValue.extractSymbol() |
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.base.Predicate<SymbolValue<?>> |
SymbolValue.hasSymbol(TypedSymbol<?> sym) |
static DoubleSymbolValue |
SymbolValue.of(TypedSymbol<Double> sym,
double val)
Create an unboxed symbol value.
|
static <T> SymbolValue<T> |
SymbolValue.of(TypedSymbol<T> sym,
T val)
Create a typed symbol value.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Set<TypedSymbol<?>> |
SparseVector.getChannelSymbols()
Retrieve all symbols that map to typed side channels for this vector.
|
Set<TypedSymbol<?>> |
ImmutableSparseVector.getChannelSymbols() |
Set<TypedSymbol<?>> |
MutableSparseVector.getChannelSymbols() |
| Modifier and Type | Method and Description |
|---|---|
<K> it.unimi.dsi.fastutil.longs.Long2ObjectMap<K> |
MutableSparseVector.addChannel(TypedSymbol<K> channelSymbol)
Add a typed channel to this vector.
|
abstract <K> it.unimi.dsi.fastutil.longs.Long2ObjectMap<K> |
SparseVector.getChannel(TypedSymbol<K> channelSymbol)
Fetch the channel stored under a particular typed symbol.
|
<K> it.unimi.dsi.fastutil.longs.Long2ObjectMap<K> |
ImmutableSparseVector.getChannel(TypedSymbol<K> channelSymbol) |
<K> it.unimi.dsi.fastutil.longs.Long2ObjectMap<K> |
MutableSparseVector.getChannel(TypedSymbol<K> channelSymbol) |
<K> it.unimi.dsi.fastutil.longs.Long2ObjectMap<K> |
MutableSparseVector.getOrAddChannel(TypedSymbol<K> channelSymbol)
Add a typed channel to the vector, even if there is already a
channel with the same symbol.
|
abstract boolean |
SparseVector.hasChannel(TypedSymbol<?> channelSymbol)
Return whether this sparse vector has a channel stored under a
particular typed symbol.
|
boolean |
ImmutableSparseVector.hasChannel(TypedSymbol<?> channelSymbol) |
boolean |
MutableSparseVector.hasChannel(TypedSymbol<?> channelSymbol) |
<K> it.unimi.dsi.fastutil.longs.Long2ObjectMap<K> |
MutableSparseVector.removeChannel(TypedSymbol<K> channelSymbol)
Remove the typed channel stored under a particular symbol.
|
Copyright © 2013 GroupLens Research. All Rights Reserved.