|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectes.upv.dsic.gti_ia.argAgents.Metrics
public class Metrics
This class contains metrics that are used in the CBR algorithm to measure the similarity between case attributes, base on their distance.
| Constructor Summary | |
|---|---|
Metrics()
|
|
| Method Summary | |
|---|---|
static int |
dist(Date a,
Date b)
This method calculates the distance between two Date Objects. |
static float |
dist(float a,
float b)
This method calculates the distance between two floats. |
static int |
dist(int a,
int b)
This method calculates the distance between two integers. |
static int |
dist(String sp,
String tp)
This method calculates the edition distance between two Strings. |
static float |
doDist(String a,
String b)
This method decide about which is the data type of the attributes that are contained in the Strings that will be compared, and return the distance between them. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Metrics()
| Method Detail |
|---|
public static float doDist(String a,
String b)
a - an String that contains an attribute.b - an String that contains an attribute.
public static float dist(float a,
float b)
a - a float datab - a float data
public static int dist(int a,
int b)
a - an integer datab - an integer data
public static int dist(Date a,
Date b)
a - a Date Objectb - a Date Object
public static int dist(String sp,
String tp)
sp - a String Object.tp - a String Object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||