infomat.vectorspace.weighting
Class CentroidEntropyWeighter

java.lang.Object
  extended by infomat.vectorspace.weighting.Weighter
      extended by infomat.vectorspace.weighting.CentroidEntropyWeighter
All Implemented Interfaces:
HasProperties

public class CentroidEntropyWeighter
extends Weighter

A class for weighting of a IMatrix. Weights the matrix using the current weighting and the given ISimilarity and IObjectGrouping for the rows. Does nothing if the IObjectGrouping or ISimialrity are not set.


Field Summary
private  IObjectGrouping rowGrouping
           
private  SparseISimilarity rowSimilarity
           
 
Fields inherited from class infomat.vectorspace.weighting.Weighter
properties
 
Constructor Summary
CentroidEntropyWeighter()
           
CentroidEntropyWeighter(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.
 void setProperties(Properties properties)
           
 void setProperty(java.lang.String name, java.lang.Object value)
           
 void setRowIObjectGrouping(IObjectGrouping rowGrouping)
           
 void setRowISimilarity(SparseISimilarity rowSimilarity)
           
 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
 

Field Detail

rowGrouping

private IObjectGrouping rowGrouping

rowSimilarity

private SparseISimilarity rowSimilarity
Constructor Detail

CentroidEntropyWeighter

public CentroidEntropyWeighter()

CentroidEntropyWeighter

public CentroidEntropyWeighter(Properties properties)
Method Detail

getDefaultProperties

public Properties getDefaultProperties()

getPropertyValue

public java.lang.Object getPropertyValue(java.lang.String name)

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)
                 throws PropertyNotFoundException
Throws:
PropertyNotFoundException

getProperties

public Properties getProperties()

setProperties

public void setProperties(Properties properties)

getWeighterName

public java.lang.String getWeighterName()
Description copied from class: Weighter
Returns a String that identifies the Weighter.

Specified by:
getWeighterName in class Weighter

setRowIObjectGrouping

public void setRowIObjectGrouping(IObjectGrouping rowGrouping)

setRowISimilarity

public void setRowISimilarity(SparseISimilarity rowSimilarity)

weight

public void weight(IMatrix matrix)
Weight the IMatrix (the whole matrix, which may be more than the current IObjectGroupings, the picture).

Does not work properly before #setRowIObjectGrouping() and #setRowISimilarity() are called.

Specified by:
weight in class Weighter