|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object infomat.vectorspace.weighting.Weighter infomat.vectorspace.weighting.TFIDFWeighter
public class TFIDFWeighter
A class for weighting of a IMatrix. Currently works in a specific direction! Considers rows to be objects (texts) and columns to be features (words).
Field Summary |
---|
Fields inherited from class infomat.vectorspace.weighting.Weighter |
---|
properties |
Constructor Summary | |
---|---|
TFIDFWeighter()
|
|
TFIDFWeighter(Properties properties)
|
Method Summary | |
---|---|
Properties |
getDefaultProperties()
|
Properties |
getProperties()
|
java.lang.Object |
getPropertyValue(java.lang.String name)
|
java.lang.String |
getWeighterName()
Returns a String that identifies the Weighter. |
static java.util.HashMap<IObject,java.lang.Float> |
globalWeightInGroupByGroup(IObjectGroup weightGroup,
IObjectGroup correspondingGroup,
IMatrix matrix,
boolean row,
Properties properties)
The central global weighter. |
static java.util.HashMap<IObject,java.util.HashMap<IObject,java.lang.Float>> |
localWeightInGroupByGroup(IObjectGroup objectGroup,
IObjectGroup representationGroup,
IMatrix matrix,
boolean row,
Properties properties)
The central local weighter. |
static void |
normalizeMatrix(IMatrix matrix,
boolean row)
Normalizes the rows or columns of the matrix. |
void |
setProperties(Properties properties)
|
void |
setProperty(java.lang.String name,
java.lang.Object value)
|
void |
weight(IMatrix matrix)
Weight the IMatrix (the whole matrix, which may be more than the current IObjectGroupings, the picture). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TFIDFWeighter()
public TFIDFWeighter(Properties properties)
Method Detail |
---|
public Properties getDefaultProperties()
public java.lang.Object getPropertyValue(java.lang.String name)
public void setProperty(java.lang.String name, java.lang.Object value) throws PropertyNotFoundException
PropertyNotFoundException
public Properties getProperties()
public void setProperties(Properties properties)
public java.lang.String getWeighterName()
Weighter
getWeighterName
in class Weighter
public void weight(IMatrix matrix)
weight
in class Weighter
public static void normalizeMatrix(IMatrix matrix, boolean row)
public static java.util.HashMap<IObject,java.util.HashMap<IObject,java.lang.Float>> localWeightInGroupByGroup(IObjectGroup objectGroup, IObjectGroup representationGroup, IMatrix matrix, boolean row, Properties properties)
row
- Wether the first group is along the rows of the matrix.public static java.util.HashMap<IObject,java.lang.Float> globalWeightInGroupByGroup(IObjectGroup weightGroup, IObjectGroup correspondingGroup, IMatrix matrix, boolean row, Properties properties)
row
- Wether the first group is along the rows of the matrix.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |