public abstract class StandardGlobalSimilarityFunction extends Object implements GlobalSimilarityFunction
| Constructor and Description |
|---|
StandardGlobalSimilarityFunction() |
| Modifier and Type | Method and Description |
|---|---|
double |
compute(CaseComponent componentOfCase,
CaseComponent componentOfQuery,
CBRCase _case,
CBRQuery _query,
NNConfig numSimConfig)
Computes the similarities of the sub-attributes of this CaseComponent and calls the computeSimilarity() method with those values.
|
abstract double |
computeSimilarity(double[] values,
double[] weigths,
int numberOfvalues)
Hook method that must be implemented by subclasses returned the global similarity value.
|
public StandardGlobalSimilarityFunction()
public double compute(CaseComponent componentOfCase, CaseComponent componentOfQuery, CBRCase _case, CBRQuery _query, NNConfig numSimConfig)
compute in interface GlobalSimilarityFunctioncomponentOfCase - compound attribute of the casecomponentOfQuery - compound attribute of the query_case - case being compared_query - query being comparednumSimConfig - Similarity functions configurationGlobalSimilarityFunction.compute(CaseComponent, CaseComponent, CBRCase, CBRQuery, NNConfig)public abstract double computeSimilarity(double[] values, double[] weigths, int numberOfvalues)
values - of the similarity of the sub-attributesweigths - of the sub-attributesnumberOfvalues - (or sub-attributes) that were obtained (some subattributes may not compute for the similarity).Copyright © 2018 Group of Artificial Intelligence Applications (GAIA). All rights reserved.