|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TargetCostFunction
A target cost function for evaluating the goodness-of-fit of a given unit for a given target.
| Method Summary | |
|---|---|
void |
computeTargetFeatures(Target target)
Compute the features for a given target, and store them in the target. |
double |
cost(Target target,
Unit unit)
Compute the goodness-of-fit of a given unit for a given target. |
java.lang.String |
getFeature(Unit unit,
java.lang.String featureName)
Get the string representation of the feature value associated with the given unit |
FeatureDefinition |
getFeatureDefinition()
Provide access to the Feature Definition used. |
FeatureVector |
getFeatureVector(Unit unit)
Get the target cost feature vector for the given unit. |
FeatureVector[] |
getFeatureVectors()
Get all feature vectors. |
void |
load(FeatureFileReader featureFileReader,
java.lang.String weightsFile,
FeatureProcessorManager featProc)
Initialise the data needed to do a target cost computation. |
void |
load(java.lang.String featureFileName,
java.lang.String weightsFile,
FeatureProcessorManager featProc)
Initialise the data needed to do a target cost computation. |
| Method Detail |
|---|
void load(java.lang.String featureFileName,
java.lang.String weightsFile,
FeatureProcessorManager featProc)
throws java.io.IOException
featureFileName - name of a file containing the unit featuresweightsFile - an optional weights file -- if non-null, contains
feature weights that override the ones present in the feature file.featProc - a feature processor manager which can provide feature processors
to compute the features for a target at run time
java.io.IOException
void load(FeatureFileReader featureFileReader,
java.lang.String weightsFile,
FeatureProcessorManager featProc)
throws java.io.IOException
featureFileReader - a reader for the file containing the unit featuresweightsFile - an optional weights file -- if non-null, contains
feature weights that override the ones present in the feature file.featProc - a feature processor manager which can provide feature processors
to compute the features for a target at run time
java.io.IOException
double cost(Target target,
Unit unit)
target - unit -
void computeTargetFeatures(Target target)
target - the target for which to compute the featuresTarget.getFeatureVector()FeatureDefinition getFeatureDefinition()
java.lang.String getFeature(Unit unit,
java.lang.String featureName)
unit - the unit whose feature value is requestedfeatureName - name of the feature requested
java.lang.IllegalArgumentException - if featureName is not a known featureFeatureVector getFeatureVector(Unit unit)
unit -
FeatureVector[] getFeatureVectors()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||