| 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<Symbol> |
AbstractScoredId.getUnboxedChannelSymbols() |
Set<Symbol> |
ScoredId.getUnboxedChannelSymbols()
Determine the symbols associated with all unboxed double side channels of a
ScoredId. |
| Modifier and Type | Method and Description |
|---|---|
ScoredIdListBuilder |
ScoredIdListBuilder.addChannel(Symbol sym)
Add a side channel to the list builder with a default value of 0.
|
ScoredIdListBuilder |
ScoredIdListBuilder.addChannel(Symbol sym,
double dft)
Add a side channel to the list builder.
|
ScoredIdBuilder |
ScoredIdBuilder.addChannel(Symbol symbol,
double value)
Add a new unboxed side channel to the
ScoredId under construction. |
static com.google.common.collect.Ordering<ScoredId> |
ScoredIds.channelOrder(Symbol chan)
An ordering (comparator) that compares IDs by channel.
|
double |
ScoredId.getUnboxedChannelValue(Symbol sym)
Get the unboxed value for a channel.
|
boolean |
AbstractScoredId.hasUnboxedChannel(Symbol sym)
Determine if a
ScoredId has a specific channel. |
boolean |
ScoredId.hasUnboxedChannel(Symbol s)
Determine if a
ScoredId has a specific channel. |
| Modifier and Type | Method and Description |
|---|---|
ScoredIdListBuilder |
ScoredIdListBuilder.addChannels(Iterable<Symbol> channels)
Add multiple unboxed channels with a default value of 0.
|
| Modifier and Type | Method and Description |
|---|---|
Symbol |
TypedSymbol.getRawSymbol()
Get the symbol.
|
Symbol |
SymbolValue.getRawSymbol()
Get the raw
Symbol from the symbol value. |
static Symbol |
Symbol.of(String name)
Get a unique symbol for .
|
| Modifier and Type | Method and Description |
|---|---|
static <T> TypedSymbol<T> |
TypedSymbol.of(Class<T> type,
Symbol sym) |
static DoubleSymbolValue |
SymbolValue.of(Symbol sym,
double val)
Create an unboxed symbol value.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Set<Symbol> |
SparseVector.getChannelVectorSymbols()
Retrieve all symbols that map to side channels for this vector.
|
Set<Symbol> |
ImmutableSparseVector.getChannelVectorSymbols() |
Set<Symbol> |
MutableSparseVector.getChannelVectorSymbols() |
| Modifier and Type | Method and Description |
|---|---|
MutableSparseVector |
MutableSparseVector.addChannelVector(Symbol channelSymbol)
Add a channel to this vector.
|
abstract SparseVector |
SparseVector.getChannelVector(Symbol channelSymbol)
Get the vector associated with a particular unboxed channel.
|
ImmutableSparseVector |
ImmutableSparseVector.getChannelVector(Symbol channelSymbol) |
MutableSparseVector |
MutableSparseVector.getChannelVector(Symbol channelSymbol) |
MutableSparseVector |
MutableSparseVector.getOrAddChannelVector(Symbol channelSymbol)
Add a channel to the vector, even if there is already a
channel with the same symbol.
|
abstract boolean |
SparseVector.hasChannelVector(Symbol channelSymbol)
Return whether this sparse vector has a channel vector stored under a
particular symbol.
|
boolean |
ImmutableSparseVector.hasChannelVector(Symbol channelSymbol) |
boolean |
MutableSparseVector.hasChannelVector(Symbol channelSymbol) |
SparseVector |
MutableSparseVector.removeChannelVector(Symbol channelSymbol)
Remove the channel stored under a particular symbol.
|
Copyright © 2013 GroupLens Research. All Rights Reserved.