| Package | Description |
|---|---|
| org.grouplens.lenskit.vectors |
Vectors (both sparse and dense) and their operations.
|
| Modifier and Type | Method and Description |
|---|---|
MutableSparseVector |
MutableSparseVector.addChannelVector(Symbol channelSymbol)
Add a channel to this vector.
|
MutableSparseVector |
MutableSparseVector.copy()
Copy the rating vector.
|
static MutableSparseVector |
MutableSparseVector.create(Collection<Long> domain)
Create a new empty mutable sparse vector with the specified key domain.
|
static MutableSparseVector |
MutableSparseVector.create(Collection<Long> domain,
double value)
Create a new mutable sparse vector with the specified key domain and filled with a value.
|
static MutableSparseVector |
MutableSparseVector.create(long... keys)
Create a mutable sparse vector with a fixed set of keys.
|
static MutableSparseVector |
MutableSparseVector.create(Map<Long,Double> content)
Create a new mutable sparse vector with the specified content.
|
static MutableSparseVector |
Vectors.fromScoredIds(List<ScoredId> scores) |
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 MutableSparseVector |
SparseVector.mutableCopy()
Return a mutable copy of this sparse vector.
|
MutableSparseVector |
ImmutableSparseVector.mutableCopy() |
MutableSparseVector |
MutableSparseVector.mutableCopy() |
MutableSparseVector |
MutableSparseVector.shrinkDomain()
Create a new version of this MutableSparseVector that has keyDomain equal to this vector's
key set.
|
MutableSparseVector |
MutableSparseVector.withDomain(it.unimi.dsi.fastutil.longs.LongSet keyDomain)
Create a new version of this MutableSparseVector that has a
different domain from the current version of the vector.
|
static MutableSparseVector |
MutableSparseVector.wrap(long[] keys,
double[] values)
Wrap key and value arrays in a sparse vector.
|
static MutableSparseVector |
MutableSparseVector.wrap(long[] keys,
double[] values,
int size)
Wrap key and value arrays in a sparse vector.
|
static MutableSparseVector |
MutableSparseVector.wrap(it.unimi.dsi.fastutil.longs.LongArrayList keyList,
it.unimi.dsi.fastutil.doubles.DoubleArrayList valueList)
Wrap key and value array lists in a mutable sparse vector.
|
static MutableSparseVector |
MutableSparseVector.wrapUnsorted(long[] keys,
double[] values)
Create a new
MutableSparseVector from unsorted key and value
arrays. |
Copyright © 2013 GroupLens Research. All Rights Reserved.