edu.indiana.iucbrf.feature.stats
Class DistanceInfluence
java.lang.Object
edu.indiana.iucbrf.feature.stats.DistanceInfluence
public class DistanceInfluence
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
domain
protected Domain domain
allKeys
protected java.util.HashSet allKeys
pKeyToValueToCount
protected KeyToValueToDouble pKeyToValueToCount
maxInfluenceKey
protected FeatureKey maxInfluenceKey
differentiator
protected ProblemDifferentiator differentiator
DistanceInfluence
public DistanceInfluence(Domain domain)
- Creates a new instance of DistanceInfluence
DistanceInfluence
public DistanceInfluence(Domain domain,
ProblemDifferentiator differentiator)
- Creates a new instance of DistanceInfluence
DistanceInfluence
public DistanceInfluence(Domain domain,
java.util.HashSet allKeys)
- Creates a new instance of DistanceInfluence
DistanceInfluence
public DistanceInfluence(Domain domain,
java.util.HashSet allKeys,
ProblemDifferentiator differentiator)
- Creates a new instance of DistanceInfluence
init
protected void init(Domain domain,
java.util.HashSet allKeys,
ProblemDifferentiator differentiator)
setProblemDifferentiator
public void setProblemDifferentiator(ProblemDifferentiator differentiator)
getProblemDifferentiator
public ProblemDifferentiator getProblemDifferentiator()
calcDistInfluences
public java.util.HashMap calcDistInfluences(Problem problemSoFar,
RetrievalResults cases,
java.util.HashSet keysOfInterest)
- Returns:
- HashMap from problem FeatureKey to distance influence (Double)
reinit
protected void reinit()
getMaxInfluenceKey
public FeatureKey getMaxInfluenceKey()
calcDistInfluence
protected double calcDistInfluence(Problem problemSoFar,
RetrievalResults cases,
FeatureKey key)
calcDistVariance
protected double calcDistVariance(Problem problemSoFar,
RetrievalResults cases)