infomat.vectorspace
Class IObject
java.lang.Object
infomat.vectorspace.IObject
- Direct Known Subclasses:
- IObjectGroup
public class IObject
- extends java.lang.Object
A IObject is either an object or a feature.
It could be a word or a document for instance.
This is the smallest part of the representation.
- Version:
- 070314
- Author:
- Magnus Rosell
Constructor Summary |
IObject(java.lang.String s,
int id)
|
IObject(java.lang.String s,
int kind,
int id)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IObject
public IObject(java.lang.String s,
int id)
IObject
public IObject(java.lang.String s,
int kind,
int id)
getString
public java.lang.String getString()
setString
public void setString(java.lang.String s)
getKind
public int getKind()
getID
public int getID()
getRepresentation
public java.util.HashMap<IObject,java.lang.Float> getRepresentation(IMatrix myIMatrix)
- Returns the representation in the form of a HashMap, mapping
IObject to a Float value. For a group - the centroid.
stringCompareTo
public int stringCompareTo(IObject co)