edu.indiana.iucbrf.feature.stats
Class DistanceInfluence

java.lang.Object
  extended by edu.indiana.iucbrf.feature.stats.DistanceInfluence

public class DistanceInfluence
extends java.lang.Object


Field Summary
protected  java.util.HashSet allKeys
           
protected  ProblemDifferentiator differentiator
           
protected  Domain domain
           
protected  FeatureKey maxInfluenceKey
           
protected  KeyToValueToDouble pKeyToValueToCount
           
 
Constructor Summary
DistanceInfluence(Domain domain)
          Creates a new instance of DistanceInfluence
DistanceInfluence(Domain domain, java.util.HashSet allKeys)
          Creates a new instance of DistanceInfluence
DistanceInfluence(Domain domain, java.util.HashSet allKeys, ProblemDifferentiator differentiator)
          Creates a new instance of DistanceInfluence
DistanceInfluence(Domain domain, ProblemDifferentiator differentiator)
          Creates a new instance of DistanceInfluence
 
Method Summary
protected  double calcDistInfluence(Problem problemSoFar, RetrievalResults cases, FeatureKey key)
           
 java.util.HashMap calcDistInfluences(Problem problemSoFar, RetrievalResults cases, java.util.HashSet keysOfInterest)
           
protected  double calcDistVariance(Problem problemSoFar, RetrievalResults cases)
           
 FeatureKey getMaxInfluenceKey()
           
 ProblemDifferentiator getProblemDifferentiator()
           
protected  void init(Domain domain, java.util.HashSet allKeys, ProblemDifferentiator differentiator)
           
protected  void reinit()
           
 void setProblemDifferentiator(ProblemDifferentiator differentiator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

domain

protected Domain domain

allKeys

protected java.util.HashSet allKeys

pKeyToValueToCount

protected KeyToValueToDouble pKeyToValueToCount

maxInfluenceKey

protected FeatureKey maxInfluenceKey

differentiator

protected ProblemDifferentiator differentiator
Constructor Detail

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

Method Detail

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)