Package moa.recommender.rc.utils
Class SparseVector
- java.lang.Object
-
- moa.recommender.rc.utils.Vector
-
- moa.recommender.rc.utils.SparseVector
-
- All Implemented Interfaces:
Serializable
public class SparseVector extends Vector
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
SparseVector.SparseVectorIterator
-
Constructor Summary
Constructors Constructor Description SparseVector()
SparseVector(Map<Integer,Double> map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SparseVector
copy()
Double
get(int index)
Set<Integer>
getIdxs()
Iterator<Pair<Integer,Double>>
iterator()
void
remove(int index)
void
set(int index, double val)
int
size()
-
Methods inherited from class moa.recommender.rc.utils.Vector
dotProduct, norm
-
-
-
-
Method Detail
-
copy
public SparseVector copy()
-
-