jcolibri.method.maintenance
Class SetCalculator

java.lang.Object
  extended by jcolibri.method.maintenance.SetCalculator

public class SetCalculator
extends java.lang.Object

Calculates coverage, reachability and liability sets using both the CRR definition and the ICF definition

Author:
Lisa Cummins

Field Summary
static java.lang.String COVERAGE_SET
           
static java.lang.String LIABILITY_SET
           
static java.lang.String REACHABILITY_SET
           
 
Constructor Summary
SetCalculator()
           
 
Method Summary
 java.util.HashMap<java.lang.String,java.util.HashMap<CBRCase,java.util.LinkedList<CBRCase>>> calculateCRRSets(java.util.Collection<CBRCase> cases, KNNConfig simConfig)
          Calculates coverage, reachability and liability sets
 java.util.HashMap<java.lang.String,java.util.HashMap<CBRCase,java.util.LinkedList<CBRCase>>> calculateICFSets(java.util.LinkedList<CBRCase> cases, KNNConfig simConfig)
          Calculates coverage, reachability and liability sets
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COVERAGE_SET

public static final java.lang.String COVERAGE_SET
See Also:
Constant Field Values

REACHABILITY_SET

public static final java.lang.String REACHABILITY_SET
See Also:
Constant Field Values

LIABILITY_SET

public static final java.lang.String LIABILITY_SET
See Also:
Constant Field Values
Constructor Detail

SetCalculator

public SetCalculator()
Method Detail

calculateCRRSets

public java.util.HashMap<java.lang.String,java.util.HashMap<CBRCase,java.util.LinkedList<CBRCase>>> calculateCRRSets(java.util.Collection<CBRCase> cases,
                                                                                                                     KNNConfig simConfig)
Calculates coverage, reachability and liability sets

Returns:
the coverage, reachability and liability sets of the given case base according to the CRR definition

calculateICFSets

public java.util.HashMap<java.lang.String,java.util.HashMap<CBRCase,java.util.LinkedList<CBRCase>>> calculateICFSets(java.util.LinkedList<CBRCase> cases,
                                                                                                                     KNNConfig simConfig)
Calculates coverage, reachability and liability sets

Returns:
the coverage, reachability and liability sets of the given case base according to the ICF definition


GAIA - Group for Artificial Intelligence Applications http://gaia.fdi.ucm.es