| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgr.demokritos.iit.jinsect.structs.SimpleSimilarity
public class SimpleSimilarity
A class returning a simple similarity representation.
| Field Summary | |
|---|---|
protected  java.lang.Double | 
Simil
The value of similarity this object represents.  | 
| Constructor Summary | |
|---|---|
SimpleSimilarity()
Creates a simple similarity object, with default value zero.  | 
|
SimpleSimilarity(double dInit)
Creates a simple similarity object, with a default value given.  | 
|
| Method Summary | |
|---|---|
 double | 
asDistance()
Computes a distance as a function of the overall similarity.  | 
 double | 
getOverallSimilarity()
Computes the overall similarity, given any (descendent defined) parameters.  | 
 void | 
setSimilarity(double dNewVal)
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected java.lang.Double Simil
| Constructor Detail | 
|---|
public SimpleSimilarity()
public SimpleSimilarity(double dInit)
dInit - A double default similarity value.| Method Detail | 
|---|
public double getOverallSimilarity()
ISimilarity
getOverallSimilarity in interface ISimilaritypublic void setSimilarity(double dNewVal)
public double asDistance()
ISimilarity
asDistance in interface ISimilarity
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||