org.apache.mahout.math
Class FileBasedSparseBinaryMatrix.BinaryReadOnlyElement
java.lang.Object
org.apache.mahout.math.FileBasedSparseBinaryMatrix.BinaryReadOnlyElement
- All Implemented Interfaces:
- Vector.Element
- Enclosing class:
- FileBasedSparseBinaryMatrix
public static class FileBasedSparseBinaryMatrix.BinaryReadOnlyElement
- extends Object
- implements Vector.Element
Method Summary |
double |
get()
|
int |
index()
|
void |
set(double value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileBasedSparseBinaryMatrix.BinaryReadOnlyElement
public FileBasedSparseBinaryMatrix.BinaryReadOnlyElement(int index)
get
public double get()
- Specified by:
get
in interface Vector.Element
- Returns:
- the value of this vector element.
index
public int index()
- Specified by:
index
in interface Vector.Element
- Returns:
- the index of this vector element.
set
public void set(double value)
- Specified by:
set
in interface Vector.Element
- Parameters:
value
- Set the current element to value.
Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.