|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.indiana.iucbrf.feature.stats.FeatureStats
public class FeatureStats
Field Summary | |
---|---|
protected CaseBase |
cb
|
protected java.util.HashMap |
dependencies
Maps FeatureKeys to feature's dependencies |
protected Domain |
domain
|
protected java.util.HashMap |
maxVals
Maps FeatureKeys to feature's maximum observed value |
protected java.util.HashMap |
means
Maps FeatureKeys to mean feature values |
protected java.util.HashMap |
minVals
Maps FeatureKeys to feature's minimum observed value |
protected double |
mostDependentThreshold
|
protected java.util.HashMap |
stdDevs
Maps FeatureKeys to feature's standard deviation |
Constructor Summary | |
---|---|
FeatureStats(CaseBase cb,
Domain domain)
For this constructor, calcStats is called, but calcDependencies() is not. |
|
FeatureStats(CaseBase cb,
Domain domain,
double mostDependentThreshold)
For this constructor, both calcStats and calcDpendencies() are called. |
Method Summary | |
---|---|
void |
calcDependencies(double mostDependentThreshold)
|
protected double |
calcMeanAndMinMax(FeatureKey featureKey)
|
protected void |
calcStats()
This method calls calcMean() and calcStdDev() as well, so they do not need to be called separately. |
protected double |
calcStdDev(FeatureKey featureKey,
double mean)
|
double |
getDependence(FeatureKey primary,
FeatureKey other)
Dependence is not necessarily symmetric. |
FeatureDependence |
getFeatureDependence(FeatureKey primary)
|
double |
getMaxValue(FeatureKey key)
|
double |
getMean(FeatureKey key)
|
double |
getMinValue(FeatureKey key)
|
java.util.HashSet |
getMostDependent(FeatureKey primary)
|
double |
getStdDev(FeatureKey key)
|
void |
setDependencies(double mostDependentThreshold,
FeatureKey[] allKeys,
double[][] deps)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.HashMap means
protected java.util.HashMap stdDevs
protected java.util.HashMap dependencies
protected java.util.HashMap minVals
protected java.util.HashMap maxVals
protected double mostDependentThreshold
protected CaseBase cb
protected Domain domain
Constructor Detail |
---|
public FeatureStats(CaseBase cb, Domain domain)
public FeatureStats(CaseBase cb, Domain domain, double mostDependentThreshold)
Method Detail |
---|
public double getMean(FeatureKey key)
public double getStdDev(FeatureKey key)
public double getMinValue(FeatureKey key)
public double getMaxValue(FeatureKey key)
protected void calcStats()
protected double calcMeanAndMinMax(FeatureKey featureKey)
protected double calcStdDev(FeatureKey featureKey, double mean)
public FeatureDependence getFeatureDependence(FeatureKey primary)
public double getDependence(FeatureKey primary, FeatureKey other)
public java.util.HashSet getMostDependent(FeatureKey primary)
public void setDependencies(double mostDependentThreshold, FeatureKey[] allKeys, double[][] deps)
public void calcDependencies(double mostDependentThreshold)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |