infomat.vectorspace
Class IMatrixCell
java.lang.Object
infomat.vectorspace.IMatrixCell
- All Implemented Interfaces:
- IVectorIndex
public class IMatrixCell
- extends java.lang.Object
- implements IVectorIndex
An element in a IMatrix. In many types of applications, as Information
Retrieval (IR) for instance, the IMatrix is very sparse. Only the non zero
elements are stored.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rowObject
private IObject rowObject
columnObject
private IObject columnObject
localCount
private float localCount
localWeight
private float localWeight
weight
private float weight
IMatrixCell
public IMatrixCell(IObject rowObject,
IObject columnObject,
float localCount,
float weight)
IMatrixCell
public IMatrixCell(IObject rowObject,
IObject columnObject,
float localCount,
float localWeight,
float weight)
IMatrixCell
public IMatrixCell(IObject rowObject,
IObject columnObject,
float weight)
IMatrixCell
public IMatrixCell(IMatrixCell mc)
getLocalCount
public float getLocalCount()
getLocalWeight
public float getLocalWeight()
getWeight
public float getWeight()
getRowIObject
public IObject getRowIObject()
getColumnIObject
public IObject getColumnIObject()
getOtherIObject
public IObject getOtherIObject(IObject io)
addToLocalCount
public void addToLocalCount(float addition)
addOneToLocalCount
public void addOneToLocalCount()
invert
protected void invert()
setRowIObject
protected void setRowIObject(IObject io)
setColumnIObject
protected void setColumnIObject(IObject io)
setLocalWeight
public void setLocalWeight(float localWeight)
- Use with caution!
setWeight
public void setWeight(float weight)
- Use with caution!
getString
public java.lang.String getString()
- Specified by:
getString
in interface IVectorIndex
getLocation
public java.lang.String getLocation()
- Specified by:
getLocation
in interface IVectorIndex
getID
public int getID()
- Specified by:
getID
in interface IVectorIndex