infomat.algorithms.reduction
Class RelativeReducer
java.lang.Object
infomat.algorithms.reduction.RelativeReducer
- All Implemented Interfaces:
- HasProperties
public class RelativeReducer
- extends java.lang.Object
- implements HasProperties
Reduces the IObjectGroup:s of a IObjectGrouping relative
the IObjectGroup:s of another IObjectGrouping.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
relativeReductionNumber
private static int relativeReductionNumber
properties
private Properties properties
RelativeReducer
public RelativeReducer()
RelativeReducer
public RelativeReducer(Properties properties)
getDefaultProperties
public Properties getDefaultProperties()
- Specified by:
getDefaultProperties
in interface HasProperties
getPropertyValue
public java.lang.Object getPropertyValue(java.lang.String name)
- Specified by:
getPropertyValue
in interface HasProperties
setProperty
public void setProperty(java.lang.String name,
java.lang.Object value)
throws PropertyNotFoundException
- Specified by:
setProperty
in interface HasProperties
- Throws:
PropertyNotFoundException
getProperties
public Properties getProperties()
- Specified by:
getProperties
in interface HasProperties
setProperties
public void setProperties(Properties properties)
- Specified by:
setProperties
in interface HasProperties
reduceGrouping
public IObjectGrouping reduceGrouping(SparseISimilarity similarity,
IObjectGrouping ioging,
IObjectGrouping relativeIOGING)
- Note: does not handle missing zero-sized groups!!!
reduceGroup
public IObjectGroup reduceGroup(SparseISimilarity similarity,
IObjectGroup iog,
IObjectGroup relativeIOG)
- Makes a new IObjectGroup that consists of
objects that have the specified relation to the relaive group.