|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines a simple interface for metric functions
Method Summary | |
float |
distance(float[] fa,
boolean[] ba,
int iOff,
edu.uiuc.ge.illigal.gale.data.Instance ins,
int iLength)
This function computes the distance between an instance an a float array starting at the iOff position, only if its required. |
float |
distance(float[] fa,
int iOff,
edu.uiuc.ge.illigal.gale.data.Instance ins,
int iLength)
This function computes the distance between an instance an a float array starting at the iOff position |
void |
init(edu.uiuc.ge.illigal.gale.data.AttributeSet att)
Initializes the distance function |
float |
maximalDistance()
Returns the maximal distance for attributes space. |
java.lang.String |
toString()
Returns the String representation of the distance function. |
Method Detail |
public void init(edu.uiuc.ge.illigal.gale.data.AttributeSet att) throws java.lang.Exception
att
- the set of attributes to use
java.lang.Exception
- the attributes' types were incompatiblepublic float distance(float[] fa, int iOff, edu.uiuc.ge.illigal.gale.data.Instance ins, int iLength)
fa
- the float array to computeiOff
- The starting array pointins
- The instance usediLength
- The number of float to be compared
public float distance(float[] fa, boolean[] ba, int iOff, edu.uiuc.ge.illigal.gale.data.Instance ins, int iLength)
fa
- the float array to computeba
- the boolean array to computeiOff
- The starting array pointins
- The instance usediLength
- The number of float to be compared
public java.lang.String toString()
toString
in class java.lang.Object
public float maximalDistance()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |