|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.uiuc.ge.illigal.gale.distance.Mixed
Implements a measure for mixed data.
Field Summary | |
protected edu.uiuc.ge.illigal.gale.data.AttributeSet |
attCnf
Attribute set information |
protected float |
fMaximalDis
Maximal distance for attribute set |
Constructor Summary | |
Mixed()
|
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected edu.uiuc.ge.illigal.gale.data.AttributeSet attCnf
protected float fMaximalDis
Constructor Detail |
public Mixed()
Method Detail |
public void init(edu.uiuc.ge.illigal.gale.data.AttributeSet att) throws java.lang.Exception
Distance
init
in interface Distance
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)
Distance
distance
in interface Distance
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)
Distance
distance
in interface Distance
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()
Distance
toString
in interface Distance
toString
in class java.lang.Object
public float maximalDistance()
Distance
maximalDistance
in interface Distance
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |