A B C D E F G H I K L M N O P R S T U V W 

A

AbstractCursor<T> - Class in org.grouplens.lenskit.cursors
Base class to make Cursors easier to implement.
AbstractCursor() - Constructor for class org.grouplens.lenskit.cursors.AbstractCursor
Construct a cursor of unknown size.
AbstractCursor(int) - Constructor for class org.grouplens.lenskit.cursors.AbstractCursor
Construct a cursor.
AbstractPollingCursor<T> - Class in org.grouplens.lenskit.cursors
An extension of AbstractCursor that simplifies the mechanics of the next()/hasNext() implementation to a simple method, AbstractPollingCursor.poll().
AbstractPollingCursor() - Constructor for class org.grouplens.lenskit.cursors.AbstractPollingCursor
Construct a cursor of unknown size.
AbstractPollingCursor(int) - Constructor for class org.grouplens.lenskit.cursors.AbstractPollingCursor
Construct a cursor with a known number of rows.
AbstractScoredId - Class in org.grouplens.lenskit.scored
A base class for ScoredId implementations providing equals and hashCode methods.
AbstractScoredId() - Constructor for class org.grouplens.lenskit.scored.AbstractScoredId
 
acquire() - Method in class org.grouplens.lenskit.collections.LongKeyDomain
Mark the key set as owned, but don't copy it.
activeIndexIterator(boolean) - Method in class org.grouplens.lenskit.collections.LongKeyDomain
Get an iterator over active indexes.
activeIndexIterator(int, int, int) - Method in class org.grouplens.lenskit.collections.LongKeyDomain
Get an iterator over active indexes, initialized to the specified index and limited to a particular range.
activeSetView() - Method in class org.grouplens.lenskit.collections.LongKeyDomain
Get a vew of this key set as a set.
add(long, double) - Method in class org.grouplens.lenskit.scored.ScoredIdListBuilder
Add a scored ID without boxing.
add(ScoredId) - Method in class org.grouplens.lenskit.scored.ScoredIdListBuilder
Add a scored ID.
add(long, double) - Method in class org.grouplens.lenskit.vectors.MutableSparseVector
Add a value to the specified entry.
add(double) - Method in class org.grouplens.lenskit.vectors.MutableSparseVector
Add a value to all set keys in this array.
add(SparseVector) - Method in class org.grouplens.lenskit.vectors.MutableSparseVector
Add another rating vector to this one.
add(int, double) - Method in class org.grouplens.lenskit.vectors.MutableVec
Add a value to an entry in this vector.
add(Vec) - Method in class org.grouplens.lenskit.vectors.MutableVec
Add another vector to this vector.
addAll(Iterable<ScoredId>) - Method in class org.grouplens.lenskit.scored.ScoredIdListBuilder
Add a collection of IDs.
addChannel(Symbol, double) - Method in class org.grouplens.lenskit.scored.ScoredIdBuilder
Add a new unboxed side channel to the ScoredId under construction.
addChannel(TypedSymbol<K>, K) - Method in class org.grouplens.lenskit.scored.ScoredIdBuilder
Add a new side channel to the ScoredId under construction.
addChannel(Symbol) - Method in class org.grouplens.lenskit.scored.ScoredIdListBuilder
Add a side channel to the list builder with a default value of 0.
addChannel(Symbol, double) - Method in class org.grouplens.lenskit.scored.ScoredIdListBuilder
Add a side channel to the list builder.
addChannel(TypedSymbol<?>) - Method in class org.grouplens.lenskit.scored.ScoredIdListBuilder
Add a side channel to the list builder.
addChannel(TypedSymbol<T>, T) - Method in class org.grouplens.lenskit.scored.ScoredIdListBuilder
Add a typed side channel to the list builder.
addChannel(TypedSymbol<K>) - Method in class org.grouplens.lenskit.vectors.MutableSparseVector
Add a typed channel to this vector.
addChannels(Iterable<Symbol>) - Method in class org.grouplens.lenskit.scored.ScoredIdListBuilder
Add multiple unboxed channels with a default value of 0.
addChannelVector(Symbol) - Method in class org.grouplens.lenskit.vectors.MutableSparseVector
Add a channel to this vector.
addTypedChannels(Iterable<? extends TypedSymbol<?>>) - Method in class org.grouplens.lenskit.scored.ScoredIdListBuilder
Add multiple channels with a default value of null.
asLongCollection(Collection<Long>) - Static method in class org.grouplens.lenskit.collections.LongUtils
Get a Fastutil LongCollection from a Collection of longs.
asLongSet(Set<Long>) - Static method in class org.grouplens.lenskit.collections.LongUtils
Get a Fastutil LongSet from a Set of longs.

B

BitSetIterator - Class in org.grouplens.lenskit.collections
Iterator over the set bits in a BitSet, returning the indexes of the set bits, in order from 0 to highest index of a set bit.
BitSetIterator(BitSet) - Constructor for class org.grouplens.lenskit.collections.BitSetIterator
Construct an iterator over a bit set.
BitSetIterator(BitSet, int) - Constructor for class org.grouplens.lenskit.collections.BitSetIterator
Construct an iterator over a bit set, starting at a desired index.
BitSetIterator(BitSet, int, int) - Constructor for class org.grouplens.lenskit.collections.BitSetIterator
Create an iterator starting at a particular bit and ending at another index.
BitSetIterator(BitSet, int, int, int) - Constructor for class org.grouplens.lenskit.collections.BitSetIterator
Create an iterator starting at a particular bit and ending at another index, with an initial position that may not be at the beginning.
build() - Method in class org.grouplens.lenskit.scored.ScoredIdBuilder
Finish constructing the ScoredId and instantiate it.
build() - Method in class org.grouplens.lenskit.scored.ScoredIdListBuilder
 

C

channelOrder(Symbol) - Static method in class org.grouplens.lenskit.scored.ScoredIds
An ordering (comparator) that compares IDs by channel.
channelOrder(TypedSymbol<T>) - Static method in class org.grouplens.lenskit.scored.ScoredIds
An ordering (comparator) that compares IDs by typed channel.
channelOrder(TypedSymbol<T>, Comparator<? super T>) - Static method in class org.grouplens.lenskit.scored.ScoredIds
An ordering (comparator) that compares IDs by typed channel.
clear() - Method in class org.grouplens.lenskit.vectors.MutableSparseVector
Clear all values from the set.
clearChannels() - Method in class org.grouplens.lenskit.scored.ScoredIdBuilder
Removes all channels (typed and double) from new ScoredId objects produced by the builder.
clone() - Method in class org.grouplens.lenskit.collections.LongKeyDomain
Return a copy of this key set.
clone() - Method in class org.grouplens.lenskit.vectors.VectorEntry
 
close() - Method in class org.grouplens.lenskit.cursors.AbstractCursor
No-op implementation of the Cursor.close() method.
close() - Method in interface org.grouplens.lenskit.cursors.Cursor
Close the cursor.
collectionFromVector(SparseVector) - Static method in class org.grouplens.lenskit.scored.ScoredIds
View a vector as a FastCollection of ScoredId objects.
CollectionUtils - Class in org.grouplens.lenskit.collections
Various helper methods for working with collections (particularly Fastutil collections).
compactCopy() - Method in class org.grouplens.lenskit.collections.LongKeyDomain
Make a compact copy of this key set.
compactCopy(boolean) - Method in class org.grouplens.lenskit.collections.LongKeyDomain
Make a compact copy of this key set.
containsKey(long) - Method in class org.grouplens.lenskit.collections.LongKeyDomain
Query whether this set contains the specified key in its domain.
containsKey(long) - Method in class org.grouplens.lenskit.vectors.SparseVector
Query whether the vector contains an entry for the key in question.
copy(E) - Method in class org.grouplens.lenskit.collections.CopyingFastCollection
Copy an element of the collection.
copy(T) - Method in class org.grouplens.lenskit.cursors.AbstractPollingCursor
Construct a copy of an object.
copy() - Method in class org.grouplens.lenskit.vectors.MutableSparseVector
Copy the rating vector.
copyBuilder(ScoredId) - Static method in class org.grouplens.lenskit.scored.ScoredIds
Create a new builder initialized to copy the specified scored ID.
CopyingFastCollection<E> - Class in org.grouplens.lenskit.collections
Abstract fast collection that implements CopyingFastCollection.iterator() in terms of FastCollection.fastIterator() and #copy(E).
CopyingFastCollection() - Constructor for class org.grouplens.lenskit.collections.CopyingFastCollection
 
countCommonKeys(SparseVector) - Method in class org.grouplens.lenskit.vectors.SparseVector
Count the common keys between two vectors.
create(long...) - Static method in class org.grouplens.lenskit.collections.LongKeyDomain
Create a key set with some keys.
create(long, double) - Static method in class org.grouplens.lenskit.scored.ScoredIds
Create a scored id with no channels.
create(Map<Long, Double>) - Static method in class org.grouplens.lenskit.vectors.ImmutableSparseVector
Construct a new immutable sparse vector from a map.
create(double[]) - Static method in class org.grouplens.lenskit.vectors.ImmutableVec
Create a new vector from data in an array.
create(Collection<Long>) - Static method in class org.grouplens.lenskit.vectors.MutableSparseVector
Create a new empty mutable sparse vector with the specified key domain.
create(Collection<Long>, double) - Static method in class org.grouplens.lenskit.vectors.MutableSparseVector
Create a new mutable sparse vector with the specified key domain and filled with a value.
create(Map<Long, Double>) - Static method in class org.grouplens.lenskit.vectors.MutableSparseVector
Create a new mutable sparse vector with the specified content.
create(long...) - Static method in class org.grouplens.lenskit.vectors.MutableSparseVector
Create a mutable sparse vector with a fixed set of keys.
create(int) - Static method in class org.grouplens.lenskit.vectors.MutableVec
Create a new mutable vector with the specified size.
Cursor<T> - Interface in org.grouplens.lenskit.cursors
Cursors over data connections.
CursorIterator<T> - Class in org.grouplens.lenskit.cursors
Simple implementation of an Iterator that wraps a Cursor's data.
CursorIterator(Cursor<T>) - Constructor for class org.grouplens.lenskit.cursors.CursorIterator
Construct a new iterator from a cursor.
Cursors - Class in org.grouplens.lenskit.cursors
Utility methods for cursors.

D

deduplicate(long[], int, int) - Static method in class org.grouplens.lenskit.collections.MoreArrays
Remove duplicate elements in the backing store.
domain() - Method in class org.grouplens.lenskit.collections.LongKeyDomain
Get the key set's domain as a set.
domainSize() - Method in class org.grouplens.lenskit.collections.LongKeyDomain
Get the domain size of this set.
dot(SparseVector) - Method in class org.grouplens.lenskit.vectors.SparseVector
Compute the dot product between two vectors.
dot(Vec) - Method in class org.grouplens.lenskit.vectors.Vec
Compute the dot product of this vector with another.
DoubleSymbolValue - Class in org.grouplens.lenskit.symbols
A pairing of a Symbol with a double value.

E

empty() - Static method in class org.grouplens.lenskit.collections.LongKeyDomain
Create an empty key domain.
empty() - Static method in class org.grouplens.lenskit.cursors.Cursors
Create an empty cursor.
empty() - Static method in class org.grouplens.lenskit.vectors.SparseVector
Get an empty sparse vector.
emptyFastCollection() - Static method in class org.grouplens.lenskit.collections.CollectionUtils
Create an empty, immutable fast collection.
equals(Object) - Method in class org.grouplens.lenskit.scored.AbstractScoredId
 
equals(Object) - Method in class org.grouplens.lenskit.symbols.SymbolValue
 
equals(Object) - Method in class org.grouplens.lenskit.vectors.SparseVector
 
equals(Object) - Method in class org.grouplens.lenskit.vectors.Vec
 
extractSymbol() - Static method in class org.grouplens.lenskit.symbols.SymbolValue
 

F

failOnUnknownChannels() - Method in class org.grouplens.lenskit.scored.ScoredIdListBuilder
Set the builder to fail on unknown channels.
fast(Iterable<E>) - Static method in class org.grouplens.lenskit.collections.CollectionUtils
Use the fast iterator of an iterable, if available.
fast() - Method in class org.grouplens.lenskit.cursors.AbstractCursor
 
fast() - Method in interface org.grouplens.lenskit.cursors.Cursor
Convert the cursor to an iterable whose Iterator.next() method is implemented in terms of Cursor.fastNext().
fast() - Method in class org.grouplens.lenskit.vectors.SparseVector
Return an iterable view of this vector using a fast iterator.
fast(VectorEntry.State) - Method in class org.grouplens.lenskit.vectors.SparseVector
Return an iterable view of this vector using a fast iterator.
FastCollection<E> - Interface in org.grouplens.lenskit.collections
Collection supporting fast iteration.
fastIntersect(SparseVector, SparseVector) - Static method in class org.grouplens.lenskit.vectors.Vectors
Iterate over the intersection of two vectors without the overhead of object creation.
fastIterator() - Method in interface org.grouplens.lenskit.collections.FastCollection
Return a fast iterator.
fastIterator() - Method in class org.grouplens.lenskit.scored.PackedScoredIdList
 
fastIterator() - Method in class org.grouplens.lenskit.vectors.SparseVector
Fast iterator over all set entries (it can reuse entry objects).
fastIterator(VectorEntry.State) - Method in class org.grouplens.lenskit.vectors.SparseVector
Fast iterator over entries (it can reuse entry objects).
fastNext() - Method in class org.grouplens.lenskit.cursors.AbstractCursor
Variant of Cursor.next() that may mutate and return the same object avoid excess allocations.
fastNext() - Method in class org.grouplens.lenskit.cursors.AbstractPollingCursor
 
fastNext() - Method in interface org.grouplens.lenskit.cursors.Cursor
Variant of Cursor.next() that may mutate and return the same object avoid excess allocations.
fill(double) - Method in class org.grouplens.lenskit.vectors.MutableSparseVector
Set the values for all items in the key domain to value.
fill(double) - Method in class org.grouplens.lenskit.vectors.MutableVec
Fill the vector with a value.
filter(Cursor<T>, Predicate<? super T>) - Static method in class org.grouplens.lenskit.cursors.Cursors
Filter a cursor.
filter(Cursor<?>, Class<T>) - Static method in class org.grouplens.lenskit.cursors.Cursors
Filter a cursor to only contain elements of type .
finish() - Method in class org.grouplens.lenskit.scored.ScoredIdListBuilder
Destructive version of ScoredIdListBuilder.build(), re-using storage if possible.
freeze() - Method in class org.grouplens.lenskit.vectors.MutableSparseVector
Construct an immutable sparse vector from this vector's data (if possible), invalidating this vector in the process.
fromCollection(Collection<Long>, boolean) - Static method in class org.grouplens.lenskit.collections.LongKeyDomain
Create a key set from a collection of keys.
fromCollection(Collection<Long>) - Static method in class org.grouplens.lenskit.collections.LongKeyDomain
Create a key set from a collection of keys.
fromScoredIds(List<ScoredId>) - Static method in class org.grouplens.lenskit.vectors.Vectors
 

G

get(int) - Method in class org.grouplens.lenskit.scored.PackedScoredIdList
 
get(long) - Method in class org.grouplens.lenskit.vectors.SparseVector
Get the value for .
get(long, double) - Method in class org.grouplens.lenskit.vectors.SparseVector
Get the value for .
get(VectorEntry) - Method in class org.grouplens.lenskit.vectors.SparseVector
Get the value for the entry's key.
get(int) - Method in class org.grouplens.lenskit.vectors.Vec
Get the value from the vector at the specified position.
getActiveMask() - Method in class org.grouplens.lenskit.collections.LongKeyDomain
Get the active keys as a bit set.
getChannel(TypedSymbol<K>) - Method in class org.grouplens.lenskit.vectors.ImmutableSparseVector
 
getChannel(TypedSymbol<K>) - Method in class org.grouplens.lenskit.vectors.MutableSparseVector
 
getChannel(TypedSymbol<K>) - Method in class org.grouplens.lenskit.vectors.SparseVector
Fetch the channel stored under a particular typed symbol.
getChannels() - Method in interface org.grouplens.lenskit.scored.ScoredId
Get the channels associated with a scored ID.
getChannelSymbols() - Method in class org.grouplens.lenskit.scored.AbstractScoredId
 
getChannelSymbols() - Method in interface org.grouplens.lenskit.scored.ScoredId
Determine the typed symbols associated with all side channels of a ScoredId.
getChannelSymbols() - Method in class org.grouplens.lenskit.vectors.ImmutableSparseVector
 
getChannelSymbols() - Method in class org.grouplens.lenskit.vectors.MutableSparseVector
 
getChannelSymbols() - Method in class org.grouplens.lenskit.vectors.SparseVector
Retrieve all symbols that map to typed side channels for this vector.
getChannelValue(TypedSymbol<T>) - Method in interface org.grouplens.lenskit.scored.ScoredId
Get the value for a channel.
getChannelVector(Symbol) - Method in class org.grouplens.lenskit.vectors.ImmutableSparseVector
 
getChannelVector(Symbol) - Method in class org.grouplens.lenskit.vectors.MutableSparseVector
 
getChannelVector(Symbol) - Method in class org.grouplens.lenskit.vectors.SparseVector
Get the vector associated with a particular unboxed channel.
getChannelVectorSymbols() - Method in class org.grouplens.lenskit.vectors.ImmutableSparseVector
 
getChannelVectorSymbols() - Method in class org.grouplens.lenskit.vectors.MutableSparseVector
 
getChannelVectorSymbols() - Method in class org.grouplens.lenskit.vectors.SparseVector
Retrieve all symbols that map to side channels for this vector.
getDoubleValue() - Method in class org.grouplens.lenskit.symbols.DoubleSymbolValue
 
getId() - Method in interface org.grouplens.lenskit.scored.ScoredId
Retrieve the numerical identifier of this ScoredId.
getIndex(long) - Method in class org.grouplens.lenskit.collections.LongKeyDomain
Get the index for a key, regardless of its active state.
getIndexIfActive(long) - Method in class org.grouplens.lenskit.collections.LongKeyDomain
Get the index for a key if that key is active.
getKey(int) - Method in class org.grouplens.lenskit.collections.LongKeyDomain
Get the key at an index.
getKey() - Method in class org.grouplens.lenskit.vectors.VectorEntry
Get the key at this entry.
getName() - Method in class org.grouplens.lenskit.symbols.Symbol
Get the name for a symbol.
getName() - Method in class org.grouplens.lenskit.symbols.TypedSymbol
Get the name for a symbol.
getOrAddChannel(TypedSymbol<K>) - Method in class org.grouplens.lenskit.vectors.MutableSparseVector
Add a typed channel to the vector, even if there is already a channel with the same symbol.
getOrAddChannelVector(Symbol) - Method in class org.grouplens.lenskit.vectors.MutableSparseVector
Add a channel to the vector, even if there is already a channel with the same symbol.
getRawSymbol() - Method in class org.grouplens.lenskit.symbols.SymbolValue
Get the raw Symbol from the symbol value.
getRawSymbol() - Method in class org.grouplens.lenskit.symbols.TypedSymbol
Get the symbol.
getRowCount() - Method in class org.grouplens.lenskit.cursors.AbstractCursor
 
getRowCount() - Method in interface org.grouplens.lenskit.cursors.Cursor
Get an upper bound on the number of rows available from the cursor.
getScore() - Method in interface org.grouplens.lenskit.scored.ScoredId
Retrieve the score of this ScoredId.
getSymbol() - Method in class org.grouplens.lenskit.symbols.DoubleSymbolValue
 
getSymbol() - Method in class org.grouplens.lenskit.symbols.SymbolValue
 
getType() - Method in class org.grouplens.lenskit.symbols.TypedSymbol
Get the type for a typed symbol.
getUnboxedChannels() - Method in class org.grouplens.lenskit.scored.AbstractScoredId
 
getUnboxedChannels() - Method in interface org.grouplens.lenskit.scored.ScoredId
Get the unboxed channels associated with a scored ID.
getUnboxedChannelSymbols() - Method in class org.grouplens.lenskit.scored.AbstractScoredId
 
getUnboxedChannelSymbols() - Method in interface org.grouplens.lenskit.scored.ScoredId
Determine the symbols associated with all unboxed double side channels of a ScoredId.
getUnboxedChannelValue(Symbol) - Method in interface org.grouplens.lenskit.scored.ScoredId
Get the unboxed value for a channel.
getValue() - Method in class org.grouplens.lenskit.symbols.DoubleSymbolValue
 
getValue() - Method in class org.grouplens.lenskit.symbols.SymbolValue
 
getValue() - Method in class org.grouplens.lenskit.vectors.VectorEntry
Get the value at this entry.
getVector() - Method in class org.grouplens.lenskit.vectors.VectorEntry
Get the sparse vector associated with this entry.

H

hasChannel(TypedSymbol<?>) - Method in class org.grouplens.lenskit.scored.AbstractScoredId
Determine if a ScoredId has a specific typed channel.
hasChannel(TypedSymbol<?>) - Method in interface org.grouplens.lenskit.scored.ScoredId
Determine if a ScoredId has a specific typed channel.
hasChannel(TypedSymbol<?>) - Method in class org.grouplens.lenskit.vectors.ImmutableSparseVector
 
hasChannel(TypedSymbol<?>) - Method in class org.grouplens.lenskit.vectors.MutableSparseVector
 
hasChannel(TypedSymbol<?>) - Method in class org.grouplens.lenskit.vectors.SparseVector
Return whether this sparse vector has a channel stored under a particular typed symbol.
hasChannelVector(Symbol) - Method in class org.grouplens.lenskit.vectors.ImmutableSparseVector
 
hasChannelVector(Symbol) - Method in class org.grouplens.lenskit.vectors.MutableSparseVector
 
hasChannelVector(Symbol) - Method in class org.grouplens.lenskit.vectors.SparseVector
Return whether this sparse vector has a channel vector stored under a particular symbol.
hashCode() - Method in class org.grouplens.lenskit.scored.AbstractScoredId
 
hashCode() - Method in class org.grouplens.lenskit.symbols.SymbolValue
 
hashCode() - Method in class org.grouplens.lenskit.vectors.SparseVector
 
hashCode() - Method in class org.grouplens.lenskit.vectors.Vec
 
hasNext() - Method in class org.grouplens.lenskit.collections.BitSetIterator
 
hasNext() - Method in class org.grouplens.lenskit.cursors.AbstractPollingCursor
 
hasNext() - Method in interface org.grouplens.lenskit.cursors.Cursor
Query whether the cursor has any more items.
hasNext() - Method in class org.grouplens.lenskit.cursors.CursorIterator
 
hasPrevious() - Method in class org.grouplens.lenskit.collections.BitSetIterator
 
hasSymbol(TypedSymbol<?>) - Static method in class org.grouplens.lenskit.symbols.SymbolValue
 
hasUnboxedChannel(Symbol) - Method in class org.grouplens.lenskit.scored.AbstractScoredId
Determine if a ScoredId has a specific channel.
hasUnboxedChannel(Symbol) - Method in interface org.grouplens.lenskit.scored.ScoredId
Determine if a ScoredId has a specific channel.

I

idFunction() - Static method in class org.grouplens.lenskit.scored.ScoredIds
A Function that extracts the ID from a scored ID.
idOrder() - Static method in class org.grouplens.lenskit.scored.ScoredIds
An ordering (comparator) that compares IDs by score.
ignoreUnknownChannels() - Method in class org.grouplens.lenskit.scored.ScoredIdListBuilder
Set the builder to ignore unknown channels on IDs passed to ScoredIdListBuilder.add(ScoredId).
immutable() - Method in class org.grouplens.lenskit.vectors.ImmutableSparseVector
 
immutable() - Method in class org.grouplens.lenskit.vectors.ImmutableVec
 
immutable() - Method in class org.grouplens.lenskit.vectors.MutableSparseVector
 
immutable() - Method in class org.grouplens.lenskit.vectors.SparseVector
Return an immutable snapshot of this sparse vector.
immutable() - Method in class org.grouplens.lenskit.vectors.Vec
Get an immutable vector with this vector's contents.
ImmutableSparseVector - Class in org.grouplens.lenskit.vectors
Immutable sparse vectors.
ImmutableVec - Class in org.grouplens.lenskit.vectors
Immutable Vec.
inactiveCopy() - Method in class org.grouplens.lenskit.collections.LongKeyDomain
Return a copy of this key set that is entirely inactive.
indexIsActive(int) - Method in class org.grouplens.lenskit.collections.LongKeyDomain
Query whether an index is active.
intersect(SparseVector, SparseVector) - Static method in class org.grouplens.lenskit.vectors.Vectors
Iterate over the intersection of two vectors - they keys they have in common.
interval(int, int) - Static method in class org.grouplens.lenskit.collections.CollectionUtils
Create an IntList that contains all numbers in a specified interval.
invert() - Method in class org.grouplens.lenskit.collections.LongKeyDomain
Invert the active status of all keys in the set.
isCompatibleWith(LongKeyDomain) - Method in class org.grouplens.lenskit.collections.LongKeyDomain
Query whether this key set is compatible with another.
isEmpty() - Method in class org.grouplens.lenskit.vectors.SparseVector
Query whether this vector is empty.
isSet(VectorEntry) - Method in class org.grouplens.lenskit.vectors.SparseVector
Check whether an entry is set.
isSet() - Method in class org.grouplens.lenskit.vectors.VectorEntry
Query whether this entry is set.
isSorted(long[], int, int) - Static method in class org.grouplens.lenskit.collections.MoreArrays
Check that the array is sorted.
iterator() - Method in class org.grouplens.lenskit.collections.CopyingFastCollection
 
iterator() - Method in class org.grouplens.lenskit.cursors.AbstractCursor
Get the iterator.
iterator() - Method in class org.grouplens.lenskit.vectors.SparseVector
 

K

keyDomain() - Method in class org.grouplens.lenskit.vectors.SparseVector
Get the key domain for this vector.
keyIsActive(long) - Method in class org.grouplens.lenskit.collections.LongKeyDomain
Query whether a key is active.
keyIterator(IntBidirectionalIterator) - Method in class org.grouplens.lenskit.collections.LongKeyDomain
Wrap an index iterator into a key iterator.
keysByValue() - Method in class org.grouplens.lenskit.vectors.SparseVector
Return the keys of this vector sorted by value.
keysByValue(boolean) - Method in class org.grouplens.lenskit.vectors.SparseVector
Get the keys of this vector sorted by the value of the items stored for each key.
keySet() - Method in class org.grouplens.lenskit.vectors.MutableSparseVector
 
keySet() - Method in class org.grouplens.lenskit.vectors.SparseVector
Get the set of keys of this vector.

L

LongKeyDomain - Class in org.grouplens.lenskit.collections
Implement a domain of long keys, sorted by key.
LongUtils - Class in org.grouplens.lenskit.collections
Utilities for working with longs and collections of them from Fastutil.
lowerBound(long) - Method in class org.grouplens.lenskit.collections.LongKeyDomain
Get the lower bound, the first index whose key is greater than or equal to the specified key.

M

makeList(Cursor<? extends T>) - Static method in class org.grouplens.lenskit.cursors.Cursors
Read a cursor into a list, closing when it is finished.
mean() - Method in class org.grouplens.lenskit.vectors.ImmutableSparseVector
 
mean() - Method in class org.grouplens.lenskit.vectors.SparseVector
Compute and return the mean of the vector's values.
mean() - Method in class org.grouplens.lenskit.vectors.Vec
Get the mean of this vector.
modifiableActiveSetView() - Method in class org.grouplens.lenskit.collections.LongKeyDomain
Get a view of this key set as a set that supports limited mutation.
MoreArrays - Class in org.grouplens.lenskit.collections
Additional array utilities.
multiply(double) - Method in class org.grouplens.lenskit.vectors.MutableSparseVector
Multiply the vector by a scalar.
multiply(SparseVector) - Method in class org.grouplens.lenskit.vectors.MutableSparseVector
Multiply each element in the vector by the corresponding element in another vector.
mutableCopy() - Method in class org.grouplens.lenskit.vectors.ImmutableSparseVector
 
mutableCopy() - Method in class org.grouplens.lenskit.vectors.MutableSparseVector
 
mutableCopy() - Method in class org.grouplens.lenskit.vectors.SparseVector
Return a mutable copy of this sparse vector.
mutableCopy() - Method in class org.grouplens.lenskit.vectors.Vec
Get a mutable copy of this vector.
MutableSparseVector - Class in org.grouplens.lenskit.vectors
Mutable version of sparse vector.
MutableVec - Class in org.grouplens.lenskit.vectors
Mutable Vec.

N

newBuilder() - Static method in class org.grouplens.lenskit.scored.ScoredIds
Create a new builder.
newListBuilder() - Static method in class org.grouplens.lenskit.scored.ScoredIds
Create a new list builder.
newListBuilder(int) - Static method in class org.grouplens.lenskit.scored.ScoredIds
Create a new list builder.
next() - Method in class org.grouplens.lenskit.cursors.AbstractPollingCursor
 
next() - Method in interface org.grouplens.lenskit.cursors.Cursor
Fetch the next item from the cursor.
next() - Method in class org.grouplens.lenskit.cursors.CursorIterator
 
nextInt() - Method in class org.grouplens.lenskit.collections.BitSetIterator
 
norm() - Method in class org.grouplens.lenskit.vectors.ImmutableSparseVector
 
norm() - Method in class org.grouplens.lenskit.vectors.ImmutableVec
 
norm() - Method in class org.grouplens.lenskit.vectors.SparseVector
Compute and return the L2 norm (Euclidian length) of the vector.
norm() - Method in class org.grouplens.lenskit.vectors.Vec
Get the L2 (Euclidean) norm of this vector.

O

objectCollection(Collection<E>) - Static method in class org.grouplens.lenskit.collections.CollectionUtils
Wrap a Collection in an ObjectCollection.
of(String) - Static method in class org.grouplens.lenskit.symbols.Symbol
Get a unique symbol for .
of(TypedSymbol<T>, T) - Static method in class org.grouplens.lenskit.symbols.SymbolValue
Create a typed symbol value.
of(TypedSymbol<Double>, double) - Static method in class org.grouplens.lenskit.symbols.SymbolValue
Create an unboxed symbol value.
of(Symbol, double) - Static method in class org.grouplens.lenskit.symbols.SymbolValue
Create an unboxed symbol value.
of(Class<T>, String) - Static method in class org.grouplens.lenskit.symbols.TypedSymbol
Get a unique symbol for and .
of(Class<T>, Symbol) - Static method in class org.grouplens.lenskit.symbols.TypedSymbol
 
org.grouplens.lenskit.collections - package org.grouplens.lenskit.collections
Custom collections and related utilities.
org.grouplens.lenskit.cursors - package org.grouplens.lenskit.cursors
Cursors for iterative data access.
org.grouplens.lenskit.scored - package org.grouplens.lenskit.scored
Associate IDs with scores.
org.grouplens.lenskit.symbols - package org.grouplens.lenskit.symbols
Interned symbols.
org.grouplens.lenskit.vectors - package org.grouplens.lenskit.vectors
Vectors (both sparse and dense) and their operations.

P

PackedScoredIdList - Class in org.grouplens.lenskit.scored
A space-efficient, unboxed list of scored IDs.
packedSet(Collection<Long>) - Static method in class org.grouplens.lenskit.collections.LongUtils
Pack longs into a sorted set.
packedSet(long...) - Static method in class org.grouplens.lenskit.collections.LongUtils
Pack longs into a sorted set.
poll() - Method in class org.grouplens.lenskit.cursors.AbstractPollingCursor
Return the next element in this Cursor, or null if there are no more elements.
previousInt() - Method in class org.grouplens.lenskit.collections.BitSetIterator
 

R

remove() - Method in class org.grouplens.lenskit.cursors.CursorIterator
 
removeAllChannels() - Method in class org.grouplens.lenskit.vectors.MutableSparseVector
Remove all channels stored in this vector.
removeChannel(TypedSymbol<K>) - Method in class org.grouplens.lenskit.vectors.MutableSparseVector
Remove the typed channel stored under a particular symbol.
removeChannelVector(Symbol) - Method in class org.grouplens.lenskit.vectors.MutableSparseVector
Remove the channel stored under a particular symbol.
repeat(T, int) - Static method in class org.grouplens.lenskit.collections.CollectionUtils
Return a list that repeats a single object multiple times.

S

scale(double) - Method in class org.grouplens.lenskit.vectors.MutableVec
Scale this vector.
ScoredId - Interface in org.grouplens.lenskit.scored
A numerical ID associated with a score and optional side channels.
ScoredIdBuilder - Class in org.grouplens.lenskit.scored
Use a ScoredId.Builder to instantiate new ScoredId objects.
ScoredIdBuilder() - Constructor for class org.grouplens.lenskit.scored.ScoredIdBuilder
Create a ScoredIdBuilder.
ScoredIdBuilder(long) - Constructor for class org.grouplens.lenskit.scored.ScoredIdBuilder
Create a ScoredIdBuilder.
ScoredIdBuilder(long, double) - Constructor for class org.grouplens.lenskit.scored.ScoredIdBuilder
Create a ScoredIdBuilder.
ScoredIdListBuilder - Class in org.grouplens.lenskit.scored
Builder for packed lists of scored ids.
ScoredIdListBuilder() - Constructor for class org.grouplens.lenskit.scored.ScoredIdListBuilder
 
ScoredIdListBuilder(int) - Constructor for class org.grouplens.lenskit.scored.ScoredIdListBuilder
 
ScoredIds - Class in org.grouplens.lenskit.scored
Utility classes for working with scored IDs.
scoreOrder() - Static method in class org.grouplens.lenskit.scored.ScoredIds
An ordering (comparator) that compares IDs by score.
set(long, double) - Method in class org.grouplens.lenskit.vectors.MutableSparseVector
Set a value in the vector.
set(VectorEntry, double) - Method in class org.grouplens.lenskit.vectors.MutableSparseVector
Set the value in the vector corresponding to a vector entry.
set(SparseVector) - Method in class org.grouplens.lenskit.vectors.MutableSparseVector
Set the values in this SparseVector to equal the values in for each key that is present in both vectors.
set(int, double) - Method in class org.grouplens.lenskit.vectors.MutableVec
Set a value in this vector.
set(Vec) - Method in class org.grouplens.lenskit.vectors.MutableVec
Copy a vector into this vector.
set(double[]) - Method in class org.grouplens.lenskit.vectors.MutableVec
Copy an array into this vector.
setActive(int, boolean) - Method in class org.grouplens.lenskit.collections.LongKeyDomain
Set the active flag for a single key.
setActive(BitSet) - Method in class org.grouplens.lenskit.collections.LongKeyDomain
Set the active bits from a bit set.
setAllActive(boolean) - Method in class org.grouplens.lenskit.collections.LongKeyDomain
Set the active status of all entries in the key set.
setDifference(LongSet, LongSet) - Static method in class org.grouplens.lenskit.collections.LongUtils
Compute the set difference of two sets.
setId(long) - Method in class org.grouplens.lenskit.scored.ScoredIdBuilder
Change the ID of the ScoredID object under construction.
setScore(double) - Method in class org.grouplens.lenskit.scored.ScoredIdBuilder
Change the score of the ScoredId object under construction.
setUnion(LongSortedSet, LongSortedSet) - Static method in class org.grouplens.lenskit.collections.LongUtils
Compute the union of two sets.
shrinkDomain() - Method in class org.grouplens.lenskit.vectors.MutableSparseVector
Create a new version of this MutableSparseVector that has keyDomain equal to this vector's key set.
size() - Method in class org.grouplens.lenskit.collections.LongKeyDomain
Get the number of active keys in this set.
size() - Method in class org.grouplens.lenskit.scored.PackedScoredIdList
 
size() - Method in class org.grouplens.lenskit.scored.ScoredIdListBuilder
Get the number of items currently in the builder.
size() - Method in class org.grouplens.lenskit.vectors.SparseVector
Get the size of this vector (the number of keys).
size() - Method in class org.grouplens.lenskit.vectors.Vec
Get the dimension of this vector (the number of elements).
sort(Cursor<T>, Comparator<? super T>) - Static method in class org.grouplens.lenskit.cursors.Cursors
Sort a cursor.
sort(Comparator<ScoredId>) - Method in class org.grouplens.lenskit.scored.ScoredIdListBuilder
Sort the list-in-progress by the specified comparator.
SparseVector - Class in org.grouplens.lenskit.vectors
Read-only interface to sparse vectors.
subtract(SparseVector) - Method in class org.grouplens.lenskit.vectors.MutableSparseVector
Subtract another rating vector from this one.
sum() - Method in class org.grouplens.lenskit.vectors.ImmutableSparseVector
 
sum() - Method in class org.grouplens.lenskit.vectors.ImmutableVec
 
sum() - Method in class org.grouplens.lenskit.vectors.SparseVector
Compute and return the L1 norm (sum) of the vector.
sum() - Method in class org.grouplens.lenskit.vectors.Vec
Get the sum of this vector.
Symbol - Class in org.grouplens.lenskit.symbols
Interface to persistent symbols.
SymbolValue<T> - Class in org.grouplens.lenskit.symbols
A pairing of a TypedSymbol with a value of the same type.

T

toString() - Method in class org.grouplens.lenskit.scored.AbstractScoredId
 
toString() - Method in class org.grouplens.lenskit.symbols.Symbol
 
toString() - Method in class org.grouplens.lenskit.symbols.TypedSymbol
 
toString() - Method in class org.grouplens.lenskit.vectors.SparseVector
 
toString() - Method in class org.grouplens.lenskit.vectors.VectorEntry
 
transform(Cursor<S>, Function<? super S, ? extends T>) - Static method in class org.grouplens.lenskit.cursors.Cursors
Transform a cursor's values.
TypedSymbol<K> - Class in org.grouplens.lenskit.symbols
A symbol associated with a particular type.

U

unionSize(LongSortedSet, LongSortedSet) - Static method in class org.grouplens.lenskit.collections.LongUtils
Compute the size of the union of two sets.
unowned() - Method in class org.grouplens.lenskit.collections.LongKeyDomain
Mark this key set as unowned.
unset(long) - Method in class org.grouplens.lenskit.vectors.MutableSparseVector
Unset the value for a key.
unset(VectorEntry) - Method in class org.grouplens.lenskit.vectors.MutableSparseVector
Unset the value for a vector entry.
unsetKeySet() - Method in class org.grouplens.lenskit.vectors.SparseVector
Get the set of unset keys.
upperBound(long) - Method in class org.grouplens.lenskit.collections.LongKeyDomain
Get the upper bound, the first index whose key is greater than the specified key.

V

valueOf(String) - Static method in enum org.grouplens.lenskit.vectors.VectorEntry.State
Returns the enum constant of this type with the specified name.
values() - Method in class org.grouplens.lenskit.vectors.SparseVector
Get the collection of values of this vector.
values() - Static method in enum org.grouplens.lenskit.vectors.VectorEntry.State
Returns an array containing the constants of this enum type, in the order they are declared.
Vec - Class in org.grouplens.lenskit.vectors
A real vector.
VectorEntry - Class in org.grouplens.lenskit.vectors
An entry in a sparse vector.
VectorEntry.State - Enum in org.grouplens.lenskit.vectors
The state of an entry in a sparse vector.
Vectors - Class in org.grouplens.lenskit.vectors
Utility methods for interacting with vectors.

W

withDomain(LongSet) - Method in class org.grouplens.lenskit.vectors.MutableSparseVector
Create a new version of this MutableSparseVector that has a different domain from the current version of the vector.
withType(Class<T>) - Method in class org.grouplens.lenskit.symbols.Symbol
Make a typed symbol from this symbol.
withValue(K) - Method in class org.grouplens.lenskit.symbols.TypedSymbol
Create a value paired with this symbol.
wrap(long[], int, boolean) - Static method in class org.grouplens.lenskit.collections.LongKeyDomain
Wrap a key array (with a specified size) into a key set.
wrap(Iterator<? extends T>) - Static method in class org.grouplens.lenskit.cursors.Cursors
Wrap an iterator in a cursor.
wrap(Collection<? extends T>) - Static method in class org.grouplens.lenskit.cursors.Cursors
Wrap a collection in a cursor.
wrap(long[], double[]) - Static method in class org.grouplens.lenskit.vectors.MutableSparseVector
Wrap key and value arrays in a sparse vector.
wrap(long[], double[], int) - Static method in class org.grouplens.lenskit.vectors.MutableSparseVector
Wrap key and value arrays in a sparse vector.
wrap(LongArrayList, DoubleArrayList) - Static method in class org.grouplens.lenskit.vectors.MutableSparseVector
Wrap key and value array lists in a mutable sparse vector.
wrap(double[]) - Static method in class org.grouplens.lenskit.vectors.MutableVec
Create a new vector wrapping an existing array.
wrapUnsorted(long[], double[]) - Static method in class org.grouplens.lenskit.vectors.MutableSparseVector
Create a new MutableSparseVector from unsorted key and value arrays.
A B C D E F G H I K L M N O P R S T U V W 

Copyright © 2013 GroupLens Research. All Rights Reserved.