|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcbr.framework.Feature
cbr.framework.TargetFeature
public class TargetFeature
This class represents a target case feature. It differs from a normal feature in that a similarity metric and weight is specified to be used during the retrieval process. It can only be used with TargetCases.
Constructor Summary | |
---|---|
TargetFeature(String name,
Value value,
SimilarityMetric sm,
double weight)
Create a feature for a target case. |
Method Summary | |
---|---|
SimilarityMetric |
getSimilarityMetric()
Get the SimilarityMetric to be used for this feature. |
double |
getWeight()
Get the feature's weighting. |
void |
setSimilarityMetric(SimilarityMetric similarityMetric)
Set the SimilarityMetric to be used for this feature. |
void |
setWeight(double weight)
Set the feature's weighting. |
Methods inherited from class cbr.framework.Feature |
---|
getName, getValueAsString, isIndexed, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TargetFeature(String name, Value value, SimilarityMetric sm, double weight)
name
- the name of the featurevalue
- the feature's valuesm
- the similarity metric to useweight
- the feature's weightMethod Detail |
---|
public SimilarityMetric getSimilarityMetric()
SimilarityMetric
to be used for this feature.
SimilarityMetric
public void setSimilarityMetric(SimilarityMetric similarityMetric)
SimilarityMetric
to be used for this feature.
similarityMetric
- the SimilarityMetric
public double getWeight()
public void setWeight(double weight)
weight
- the weight value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |