data_reduction
Class Rule1

java.lang.Object
  extended by data_reduction.Rule1
All Implemented Interfaces:
RuleInterface

public class Rule1
extends java.lang.Object
implements RuleInterface


Constructor Summary
Rule1()
           
 
Method Summary
private static void correctValue(DistanceFunction conflictEdge, DistanceFunction nonConflictEdge, int i, int j, int d_i_j, int d_i_l, int d_j_l)
          Check whether the edge i-j occurs as conflict edge or non conflicting edge and count the ocurrences.
 boolean performRule(HierarchicalClusteringInstance instance)
          Apply the data reduction rule to a distance function.
private  void updateCounterArrs(java.util.Vector<int[]> conflictArrs, DistanceFunction conflictEdge, DistanceFunction nonConflictEdge, DistanceFunction distanceFunction, int i, int j, int correction)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rule1

public Rule1()
Method Detail

correctValue

private static void correctValue(DistanceFunction conflictEdge,
                                 DistanceFunction nonConflictEdge,
                                 int i,
                                 int j,
                                 int d_i_j,
                                 int d_i_l,
                                 int d_j_l)
Check whether the edge i-j occurs as conflict edge or non conflicting edge and count the ocurrences.

Parameters:
conflictEdge -
nonConflictEdge -
i -
j -
d_i_j -
d_i_l -
d_j_l -

performRule

public boolean performRule(HierarchicalClusteringInstance instance)
                    throws UnsolvableExecption
Description copied from interface: RuleInterface
Apply the data reduction rule to a distance function.

Specified by:
performRule in interface RuleInterface
Returns:
true=rule shrinks something false=otherwise
Throws:
UnsolvableExecption

updateCounterArrs

private void updateCounterArrs(java.util.Vector<int[]> conflictArrs,
                               DistanceFunction conflictEdge,
                               DistanceFunction nonConflictEdge,
                               DistanceFunction distanceFunction,
                               int i,
                               int j,
                               int correction)