edu.indiana.iucbrf.feature.stats
Class FeatureDependence

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

public class FeatureDependence
extends java.lang.Object

Maintains dependence information between a given feature and all others.


Field Summary
protected  java.util.HashMap allDeps
           
protected  FeatureKey key
           
protected  java.util.HashSet mostDependent
           
 
Constructor Summary
FeatureDependence(FeatureKey key, CaseBase cb, Domain domain, double mostDependentThreshold, FeatureStats featureStats)
          Creates a new instance of FeatureDependence
FeatureDependence(FeatureKey key, FeatureKey[] allKeys, double[] deps, double mostDependentThreshold)
           
FeatureDependence(FeatureKey key, java.util.HashMap allDeps, double mostDependentThreshold)
          Creates a new instance of FeatureDependence
 
Method Summary
 double calcCorrelation(FeatureKey feature1, FeatureKey feature2, CaseBase cb, FeatureStats featureStats)
           
 double calcDependence(FeatureKey feature1, FeatureKey feature2, CaseBase cb, FeatureStats featureStats)
          Dependence is not necessarily symmetric.
protected  void calcDependencies(FeatureKey key, CaseBase cb, Domain domain, double mostDependentThreshold, FeatureStats featureStats)
           
 double convertToStandardUnits(double value, double mean, double stdDev)
           
 double getDependence(FeatureKey other)
          Dependence is not necessarily symmetric.
 java.util.HashSet getMostDependent()
           
 java.lang.String toString()
           
 java.lang.String toString(Domain domain)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

key

protected FeatureKey key

allDeps

protected java.util.HashMap allDeps

mostDependent

protected java.util.HashSet mostDependent
Constructor Detail

FeatureDependence

public FeatureDependence(FeatureKey key,
                         CaseBase cb,
                         Domain domain,
                         double mostDependentThreshold,
                         FeatureStats featureStats)
Creates a new instance of FeatureDependence


FeatureDependence

public FeatureDependence(FeatureKey key,
                         java.util.HashMap allDeps,
                         double mostDependentThreshold)
Creates a new instance of FeatureDependence


FeatureDependence

public FeatureDependence(FeatureKey key,
                         FeatureKey[] allKeys,
                         double[] deps,
                         double mostDependentThreshold)
Method Detail

getDependence

public double getDependence(FeatureKey other)
Dependence is not necessarily symmetric. This method returns the degree of effect that other has on this.key. Dependence is measured from 0 (completely independent) to 1 (completely dependent).


calcDependencies

protected void calcDependencies(FeatureKey key,
                                CaseBase cb,
                                Domain domain,
                                double mostDependentThreshold,
                                FeatureStats featureStats)

getMostDependent

public java.util.HashSet getMostDependent()

calcDependence

public double calcDependence(FeatureKey feature1,
                             FeatureKey feature2,
                             CaseBase cb,
                             FeatureStats featureStats)
Dependence is not necessarily symmetric. This method returns the degree of effect that other has on primary. Dependence is measured between 0 and 1.


calcCorrelation

public double calcCorrelation(FeatureKey feature1,
                              FeatureKey feature2,
                              CaseBase cb,
                              FeatureStats featureStats)

convertToStandardUnits

public double convertToStandardUnits(double value,
                                     double mean,
                                     double stdDev)

toString

public java.lang.String toString(Domain domain)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object